Precompiling an asp.net site

We have an asp.net 2.0 site created in visual studio using the asp.net site model. Therefore, every time I need to deploy a website on a production server, I go to the visual studio and right-click on the website and select "publish website". I will check the first 2 options. "Allow updating this precompiled site" and "use fixed naming assemblies." In the field "Destination" I specify the name of the folder on my local machine. Once it is published successfully, I will copy the contents from the local folder to the website folder in iis. Does this mean that I will pre-combine the website. After copying the website, I do not see an instant response to the pages. Initially, it takes some time to download,as if it were compiling at this time. After that, if I go to the same page again, it's quick. So, I don’t think I'm doing precompilation, but I'm not sure.

Please let me know.

+3
source share
2 answers

When you select the "Allow this precompiled site to be updated" option, it means that only code files (including code) are compiled. The markup (aspx, ascx, ashx, etc.) does not compile at all - they are processed and compiled at runtime only on the first visit. On the other hand, you can make changes to your aspx / ascx files on a deployed site, and the changes will take effect on the next visit (due to recompilation).

, , , . / . . , .

+6

, MSDN "Alllow this precompiled site to updated". http://msdn.microsoft.com/en-us/library/377y0s6t(v=vs.80).aspx

+1

All Articles