473,748 Members | 2,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What file changes "restart" an ASP.net 2.0 application?

Hi All,

I know that if you modify the web.config file or any file in the App_Code
subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out
any sessions, etc...).

Are there any other changes that restart the application? Will modify a
code-behind .cs/.vb which calls a class in the App_Code folder restart the
application?

I'm asking because occassionally I'll push some code out to production and
it's not the web.config or a class in the App_Code folder and it'll
"restart" the application.

Thanks for any insight,
Brian
Sep 20 '07 #1
1 2642
re:
!Are there any other changes that restart the application?

Modifying the source code of your Web application will
cause ASP.NET to recompile source files into assemblies.

When you modify the top-level items in your application, all other assemblies
in the application that reference the top-level assemblies are recompiled as well.

In addition, modifying, adding, or deleting certain types of files
within the application's known folders will cause the application to restart.

The following actions will cause an application restart:

1. Adding, modifying, or deleting assemblies from the application's Bin folder.

2. Adding, modifying, or deleting localization resources
from the App_GlobalResou rces or App_LocalResour ces folders.

3. Adding, modifying, or deleting the application's Global.asax file.

4. Adding, modifying, or deleting source code files in the App_Code directory.

5. Adding, modifying, or deleting Profile configuration.

6. Adding, modifying, or deleting Web service references in the App_WebReferenc es directory.

7. Adding, modifying, or deleting the application's Web.config file.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Brian Simmons" <ce******@newsg roup.nospamwrot e in message news:e6******** *******@TK2MSFT NGP05.phx.gbl.. .
Hi All,

I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart"
the application (i.e. clear out any sessions, etc...).

Are there any other changes that restart the application? Will modify a code-behind .cs/.vb which calls a class in
the App_Code folder restart the application?

I'm asking because occassionally I'll push some code out to production and it's not the web.config or a class in the
App_Code folder and it'll "restart" the application.

Thanks for any insight,
Brian


Sep 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6029
by: ccc31807 | last post by:
This is my 5th or 6th server (both Unix and Windows varieties). In the past I've gotten the message "ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (222)". In the past, I've either asked someone else to start the server or just tried everything I could until the server started. This time, I took a systematic approach, and noted every step. What finally worked was typing the command "service...
1
2072
by: mdb | last post by:
Anyone have a suggestion for how to restart my appliacation when I exit? I'm not talking about a looping batch file - I need my program to have the ability to restart or not restart. Also, I can't just use Process.Start because the program is a single-instance program, and I can't guarantee how long the shutdown process will take (possibly a few seconds). I suppose I could pass a parameter to the program in Process.Start to bypass the...
2
7242
by: devendra pardeshi | last post by:
hi friends/seniors i am stuck on one problem in VB 6.0 and need solution. see if u can help me. first i describe the problem. Can u imagin the WinZip scenario. we right click on some file and select in context menu add to zip.Now if winzip is not runnig allready new instance of winzip application begins and
22
37748
by: Brett | last post by:
I have a second thread, t2, that errors out and will stop. It's status is then "Stopped". I try to start t2 from thread 1, t1, by checking If t2.threadstate = "Stopped" Then t2.start() However, this throws and error: System.Threading.ThreadStateException: Thread is running or terminated; it can not restart.
7
26757
by: GTi | last post by:
Does anyone have any good code for a self restarting application? Sometimes I need to exit my application and start it again, what is the best method of doing this in a windows form application. The reason why I want to this is complicated, so a restart is faster and more easier whey of doing it.
0
1291
by: Diffident | last post by:
Hello All, I am trying to do a "build" of all files of my web app on my local machine. I know that there is an "aspnet_wp.exe" running forever on my machine and to my knowledge each web app is hosted in its own AppDomain. Now when I do a build on my local machine is this AppDomain unloaded? If yes, why does it have to be unloaded? Cannot it drain stop the current AppDomain and spawn a new AppDomain with the new assembly. Please refer to...
0
8984
marktang
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...
0
9363
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 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...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
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, 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...
1
6793
isladogs
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...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.