473,395 Members | 1,583 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,395 software developers and data experts.

Application variables not resetting

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
2 1629
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: lee | last post by:
I wont to reset all the variables in a c# object at run time, I was hoping for a field collection or some similar method of iterating through the variables. Any ideas ??? -- Lee.
1
by: Matthew Wieder | last post by:
Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter it deletes the first record. I coded: private...
4
by: Israel Ordonez Jr | last post by:
Hi everybody, I am having a problem with an ASP.NET application i am working on. I new to ASP.NET so I'm not sure if I'm doing this right. I am working on a website that has an oil price listed...
1
by: James | last post by:
Hi. I need to be able to pass a few variables on a button click to refill a form on a new page. I am using a few textbox's but when the button is clicked the values are lost - I am convinced that...
3
by: pauldepstein | last post by:
Sorry in advance if this message sounds imprecise but it's difficult to be precise when you don't really understand what's going on. I have a class called Parameters. The default constructor...
2
by: pauldepstein | last post by:
I have tried to get help over debugging issues and everyone who's replied has been as helpful as possible. Unfortunately, I haven't found ways to simplify the issues enough to provide compilable...
4
by: David Hearn | last post by:
I need to pass some variables to a user control so that some functions that are in it can use them. I am trying to set a public property that I have in it but it isn't working for some reason and I...
4
by: =?Utf-8?B?bWFzbWl0aA==?= | last post by:
Can you restart an ASP.NET application in the Application_Start event when an error occurs so the next request for the application will fire the Application_Start event again? This would allow...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
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,...
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...
0
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...
0
agi2029
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,...

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.