Thursday, May 22, 2008

Publishing a Web application project

When publishing a web application project, you'll have to make sure all of your ASPX (and Master, Controls, ...) use the CodeBehind attribute instead of the CodeFile attribute to reference the CS/VB files. Apparently, Visual Studio doesn't compile into the DLL the code files that are referenced with the CodeFile attribute while publishing. It's just one of the remnants of migrating one of my projects from a web site to a web application project.

No comments: