Search code examples
c#asp.net

How to do a precompiled web application


I have a webapplication that uses a master page. When I publish the site in vs2010 (running framework 4), and then I navigate to the default.aspx page I get a parser error that the masterpage's codebehind file does not exist.

I know that a website can be precompiled and then deployed which means there would never be anything that IIS needs to parse. The above error therefore implies that IIS is still trying to compile my precompiled site.

Is there something that needs to be configured to stop the web application from doing this?


Solution

  • Convert to Web Application: Difference between 'Web Site' and 'Project' in Visual Studio