Application_Start not firing!

P

paulo

I have an asp.net app on 3 webservers (all same platform). The apps
make extensive use of Application variables.
A problem is occuring on 1 app - I have itentified that application
variables are not been loaded on Application_Start. For example:

in global.asax:
protected void Application_Start(Object sender, EventArgs e)
{
Application["TEST"] = "TestAppString";
}

in webform:
private void Page_Load(object sender, System.EventArgs e)
{
string strTest = (string)Application["TEST"];
Response.Write(strTest)
}

DOES NOT WORK in 1 site. The other 2 work fine.
I was concerned that maybe the application is not restarting, but I
have stopped/started IIS, restarted aspnet_wp, even rebooted the box.
My next step is to set fire to it.
The strange thing is that it was working fine a couple of days ago.

Has anyone experienced a problem like this before, or can anyone think
of a config setting that could be causing this?

Many thanks,
Paul.
 
P

paul duffin

Thanks for posting a reply so quickly.
Yes the root of the website is an application.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top