Question

If you precompile a web site and keep it updatable, the ASP.NET parser can see from the Page directive that there is no codefile or codebehind and where to find the base class (inherits attribute).

<%@ page language="C#" autoeventwireup="true" inherits="_Default, Precompiled"
  theme="Default" validaterequest="false" %>

If the site is precompiled and not updatable, the .compiled files in the bin folder should give the ASP.NET runtime all the necesary information on how to instantiate the page classes.

So why is the precompiledApp.config needed?

Thanks!

Was it helpful?

Solution

It's used to indicate whether or not the ASPX/ASCX pages in your site are updateable or not. You can precompile and have the code behind compiled, but leave these pages updateable so you can make minor GUI-related tweaks should you wish.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top