How to start application on remote host server?

M

Mark Huebner

I am trying to create a web application with Visual Studio 2005 and C# that
will start up a "keep alive" application on my web site's server. My
DotNetNuke home page loads slowly when the site hasn't been accessed for a
while. The purpose of the "keep alive" application is to keep my web site
alive (loaded in memory) by accessing a page on the server every 5 minutes
or so. I've tried using Process.Start to run a console application (.exe).
The web application was able to start the exe on my local computer but
didn't seem to work when I uploaded the exe and web application to my host's
server. I'm not sure if this server will allow me to execute exe files
directly for security reasons. I've also tried running the keep alive code
in a separate thread, but it appears that when I close the web application
that started it, that stops the "keep alive" thread from executing. A
friend of mine suggested creating a separate keep alive application and
compile it as a DLL and then execute the DLL in the web application. Is
this possible? What is the best way to start this "keep alive" application
on the server? Should the "keep alive" application be compiled as a Console
application or Windows application? Should it be compiled as an exe or DLL
or something else? Thanks in advance!
 
C

chanmm

The fastest solution will be don't start you app through web page. I do
believe there is other well to start your app like terminal services.

chanmm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top