473,889 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to start Web Application automatically afrer IIS is started?

7 New Member
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_Sta rt 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 11960
4,871 Recognized Expert Specialist
Still unclear what you are trying to do, not sure that your handle on application_sta rt event is correct.
Jan 21 '08 #2
7 New Member
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
4,871 Recognized Expert Specialist
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
1 New Member
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, 1128 views)
File Type: jpg app1.jpg (24.1 KB, 982 views)
File Type: jpg app2.JPG (28.3 KB, 1499 views)
Aug 27 '08 #5
1 New Member
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_ons tart 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?


Jan 8 '10 #6

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

Similar topics

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 to the user machine. I have created version, and put this on the update server I am trying to build a self updating application (started using the appstart application as in the samples given).
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 time, but occasionally after a system startup (where the service doing the starting of the other is automatically started by Windows XP) the ServiceController's Start() method fails to start the other service. It is probably throwing an...
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 shouldn't start. So I've put in some try...catchs, but what I'm not sure how to do is not allow the service to start. If attempted to start with the NET START command, throwing an exception keeps the service from starting, but the message...
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 Process.start("C://test/app.exe"). I am writing this code in a C# web application, famework 1.1 How can I press ok to that started application. Any help will be apprecaited
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 always running and checking whether excel is started or not. Is there another way: by using registry or something?
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover configuration and the conditions for trigerring a fast start failover in dataguard environment . In Faststart failover dataguard configuration if the primary database becomes unavailable, the...
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 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.
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 HTTP Module to register for other pipeline events (like Application.BeginRequest), but I was told that the only place that I can set up an event handler for Application.Start is in Global.asax. My preference would be to register an HTTP Module...
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 Rights to do FileSystem and other work on this Server
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 the desktop, resume from hibernate/sleep, or resume a session that was paused via Switch User. By 'stop using' I mean they lock the desktop, initiate a hibernate/sleep , or choose Switch User while logged on. For context, the program is a parental...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
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.