473,508 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to start application on remote host server?

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!
Jun 5 '06 #1
2 7189
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

"Mark Huebner" <ma**@IntelligentSoftwareSystems.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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!

Jun 5 '06 #2
Mark,

I think what you really seem to want is a windows service.
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!

Jun 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2110
by: faktujaa | last post by:
Hi, I have created an application that uses IIS to host remote components. All the remote components are listed in app.config in client and web.config in server. Now the app.config can contain...
16
4173
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
9
3184
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
2
2180
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
3
2174
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
1
1384
by: Sean | last post by:
Tried both FTP and frontpage extensions method to the host server. Server has directory running as a ASP.NET application. If I take out ...Inherits="quizengine.WebForm1"...the page loads but no...
7
3012
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
16
21694
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
8
23374
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.