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



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/
======================================
"Brian Simmons" <centraso@xxxxxxxxxxxxxxxx> wrote in message news:e6C9RG5%23HHA.700@xxxxxxxxxxxxxxxxxxxxxxx
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




.



Relevant Pages

  • Re: Modifying application folder structure results in application rest
    ... Actually from my experience it does recycle on create/rename sub folder event in app_data. ... root or the /bin folder, or modify web.config, this will trigger an application restart." ... modifying or deleting global.asax or web.config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Modifying application folder structure results in application rest
    ... After 15th, application will restart. ... Actually from my experience it does recycle on create/rename sub folder ... aren't supposed to trigger filesystemwatcher behavior...but you're right, ... modifying or deleting global.asax or web.config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Modifying application folder structure results in application rest
    ... the application will restart. ... Actually from my experience it does recycle on create/rename sub folder event in app_data. ... aren't supposed to trigger filesystemwatcher behavior...but you're right, ... modifying or deleting global.asax or web.config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Recompilation
    ... Also if you modify ascx or aspx to many time ASP.NET will do the application restart. ... Modifying Global.asax or Web.config will trigger recompilation of ALL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session variable getting lost
    ... Antivirus scans are but one of the possible reasons for applications to restart, ... When you modify the top-level items in your application, all other assemblies ... In addition, modifying, adding, or deleting certain types of files ... Adding, modifying, or deleting assemblies from the application's Bin folder. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading