By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Application_Start not firing!

P: n/a
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.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Is the root declared as an application in IIS ?

Patrice
"paulo" <pa***@Telme.com> a écrit dans le message de
news:14**************************@posting.google.c om...
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.

Nov 18 '05 #2

P: n/a
Thanks for posting a reply so quickly.
Yes the root of the website is an application.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.