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

B

Brian Simmons

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
 
J

Juan T. Llibre

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_GlobalResources or App_LocalResources 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_WebReferences 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/
======================================
 

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

Top