473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to start Web Application automatically afrer IIS is started?

Hi All,

I have a Web App, I want to start Main page automatically after IIS is started without any request from browser.

OR run one Script in Global.asax after IIS started.

I understand that the Application_Start on Global.asax is fired only have any request from browser on my application.

Now I want to start App auto after IIS started.

Please help me, thanks a lot.
Jan 20 '08 #1
5 11929
kenobewan
4,871 Expert 4TB
Still unclear what you are trying to do, not sure that your handle on application_start event is correct.
Jan 21 '08 #2
I mean that, I have "function A" in global.asax file, I want IIS call Function A when I stop and re-start IIS.

That means IIS will call any Function in my app without everybody request my app from Browser.

Please help me in urgent.
Jan 22 '08 #3
kenobewan
4,871 Expert 4TB
Bewilded as I am by the design, I am not sure the application events will fire as you expect. I believe that these events are influenced by the framework. So that your very first user triggers the start event and restarting/power outage of the server triggers the end event. So I would expect stopping and starting iis to have no influence on these events.
Jan 22 '08 #4
i have a response for iis on windows 2003


in iis Management console

créate a new application pool
configure this pool so iis do not recycle de proccess evy xxx minutes so all application in this pool donot stop .


go to your application and configure it thas it will run in this application pool
[IMG]application config[/IMG]

to start your application creeate a register entry
in Run key value of entry explorer http://localhost/myapp/defaultpage.aspx
your application start when windows start
Attached Images
File Type: jpg app0.jpg (23.8 KB, 1126 views)
File Type: jpg app1.jpg (24.1 KB, 980 views)
File Type: jpg app2.JPG (28.3 KB, 1430 views)
Aug 27 '08 #5
Is there a way to fire the global.asax of any web app after IIS is reset for any reason what-so-ever. Entering a registry key would not resolve the entire issue as IIS can be reset without rebooting a machine. The fix has to be either at IIS property level /application pool level but the solution suggested does not fire application_onstart after IIS reset.

I created an separate application pool for the web app and unchecked the recycling but still no luck.

I also created an scheduled task to fire the default page of the web site to mimic an user request from browser on my application, which works but that defeats the purpose of the web app as I used that as a substitute for Scheduled tasks which are mostly unmanaged (.vbs/.bat) or carry lot of overhead for managed services.

Please can you clarify the app pool solution further?

Thanks,

SC
Jan 8 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: arduk | last post by:
I am attempting to use the Application Updater block so that I can have my ..net windows forms application automatically update when a new version is available. I have deployed version 1.0.0.0...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
6
by: Joe | last post by:
C# .NET 2.0 I've got a Windows Service that works exactly as I expect it to. However, it does rely on a few Configuration settings. If the customer doesn't configure it correctly, the service...
2
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have an exe application that I want to start remotely.Once I start the application, I want to press ok to that application. To start the application, I did...
3
by: =?Utf-8?B?S1QxOTcy?= | last post by:
Hi, How can i start an applicaiton whenever a specific application starts? Let me say in that way: when someone starts excel, i need my application to start. I don't want my application is...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
5
by: nttuanit | last post by:
I have a Web App, I want to start Main page automatically after IIS is started without any request from browser. OR run one Script in Global.asax after IIS started. I understand that the...
0
by: Cramer | last post by:
Using ASP.NET 3.5: Can a custom HTTP Module be used to register for the Application_Start event? Or _must_ I use Global.asax to work with Application.Start? I understand that I can use a custom...
3
by: DaveL | last post by:
Hi All I have a windows application that needs to run 24/7 in the SysTray How to Start this on Start up When ever the machine is re-started etc I also need to run as a Different User that has...
0
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
My program needs to do X when someone 'starts using' their Windows user account, and it should do Y when they 'stop using' their Windows user account. By 'starts using' I mean they log on, unlock...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...

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.