Some things are muddled here. The 1.1 version still has the default 15
recompilation, however that only extends to aspx and ascx pages. The code
behind form does not trigger a recompilation. The model has changed in 2.0
to dynamic compilation and a lot more files are being monitored, among them
the .cs/.vb files.
If you want to prevent that dynamic recompilation, you should use the
precompile with deployment option where all files are compiled into a single
dll. Other files cannot be added to the folder.
hope that clears it up.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog:
http://www.msmvps.com/blogs/alvin -------------------------------------------------------
[quoted text, click to view] <sonicsoul@gmail.com> wrote in message
news:1148575457.471627.29860@y43g2000cwc.googlegroups.com...
> Hello,
>
> I have a question regarding the automatic restarting of asp.net web
> applications.
> If I modify a aspx file, it is my understanding that the runtime will
> generate a new assembly based on it, and place it in the temporary
> asp.net files directory aside of the old version of this assembly, and
> route new requsts to the new assembly. When maximum number of reloads (
> 15 by default ) is reached, AppDomain will be unloaded and the web app
> will be restarted..
>
> does this means that the behavior is changed from 1.1 where, when a
> page was using a code behind file, instead of assembly, I could change
> that code behind file infinitely and this would only reload the
> assembly for that page instead of restarting the whole runtime, but now
> only x amount of such changes are avaialble ?
>
> I would be interested in preventing this and any other non explicit
> application restarts by the framework. or at least knowing exactly when
> to expect them.
>