开发者

Changes in ascx / aspx files - will it reset application

开发者 https://www.devze.com 2023-02-11 13:36 出处:网络
Changes in ascx / aspx files - will it reset application? Sometimes on dev server they won\'t cause it whereas on live serve开发者_如何学Cr I think it sometimes causes it. What is the rule?

Changes in ascx / aspx files - will it reset application? Sometimes on dev server they won't cause it whereas on live serve开发者_如何学Cr I think it sometimes causes it. What is the rule?

Thanks Pawel


It depends on what you change in the file. If you just swap some markup that don't affect any code and the project is published with the "updateable" option, it will not re-compile your solution.

However if you change to much or change inline code, it will need to be re-interpreted / re-compiled, thus your applicaiton will "reset".


It depends on how to deployed your application; ASP.NET Deployment

If you deploy simply; copy the application files you have created from your development computer to the production; In this way your application will not be reset only the page .aspx, or the page having the user control .ascx will be compiled.

However in case if you deployed your application by ASP.NET Web Site Precompilation, then it has further options which may affect compilation.

Selecting a Precompilation Model

Well, if you used a precompilation model with UI Update, then changing aspx or ascx will not reset your application, otherwise with other models your application will be reset.


Further to Filip's point, if Shadow Copy is enabled, the application will reset only when you recycle the application pool.

http://odetocode.com/articles/305.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消