When will the ASP.NET Website project be recompiled?

Like Maurico and codeka , the value of InProc sessions is not specified at first , unless you want your sessions to be affected by recompiling websites and reprocessing applications.

List of reasons why the whole site is recompiled:

  • By default, when any changes are made to the top-level file on a website, the entire site is recompiled. Top-level files include the global.asax file and all files in the bin / and App_Code / folders .

  • web.config change

  • configuration includes modifying the file if the SectionInformation.RestartOnExternalChanges property is true

    <section name = "MyAppSettings" type = "System.Configuration.AppSettingsSection, System.Configuration, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"    restartOnExternalChanges = " True " requirePermission = "false" />

Notes:

  • If you want to be able to modify top-level files without recompiling the entire site, you can set the optimizeCompilations attribute of the compilation element in the Web.config file to true

Literature:


, , - ( -) ?

, , , , . , , . , .

+3
1

-, IIS. ( , , ), , , .

ASP.NET " ", Windows, . - SQL Server.

, SQL Server , : - , SQL Server. ASP.NET , ( , , NoSQL!)

+5

Source: https://habr.com/ru/post/1740831/


All Articles