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

Application variables not resetting

P: n/a
I have my Application variables getting set in my Global.aspx file.

If I change a variable in my table that is read at startup, I need to
restart the application to reload the variables.

I found, however, that if I stop and start the Application from IIS, it
doesn't reload the data.

I need to actually stop and start the Web Service (World Wide Web
Publishing) to get it to work.

Why doesn't stopping and starting the application do this?

Thanks,

Tom
Jul 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
It's likely that it doesn't really stop the web application but just
prevents connections. Try to see if touching the web.config does this.

Also you could just have a page that reloads those data from the DB. This
way you won't even have to stop/restart the web application to refresh those
settings...

--
Patrice

"tshad" <ts**********@ftsolutions.coma écrit dans le message de news:
O1**************@TK2MSFTNGP05.phx.gbl...
>I have my Application variables getting set in my Global.aspx file.

If I change a variable in my table that is read at startup, I need to
restart the application to reload the variables.

I found, however, that if I stop and start the Application from IIS, it
doesn't reload the data.

I need to actually stop and start the Web Service (World Wide Web
Publishing) to get it to work.

Why doesn't stopping and starting the application do this?

Thanks,

Tom

Jul 12 '06 #2

P: n/a
"Patrice" <sc****@chez.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
It's likely that it doesn't really stop the web application but just
prevents connections. Try to see if touching the web.config does this.
Touching by how? Just opening in a text editor and saving it?
>
Also you could just have a page that reloads those data from the DB. This
way you won't even have to stop/restart the web application to refresh
those settings...
That is what the Application_Start function is for.

The problem is that it doesn't seem to go to that unless you restart the Web
Server.

Thanks,

Tom
--
Patrice

"tshad" <ts**********@ftsolutions.coma écrit dans le message de news:
O1**************@TK2MSFTNGP05.phx.gbl...
>>I have my Application variables getting set in my Global.aspx file.

If I change a variable in my table that is read at startup, I need to
restart the application to reload the variables.

I found, however, that if I stop and start the Application from IIS, it
doesn't reload the data.

I need to actually stop and start the Web Service (World Wide Web
Publishing) to get it to work.

Why doesn't stopping and starting the application do this?

Thanks,

Tom


Jul 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.