Lesson learned for Visual Studio and Web Deployment Projects

In my jump into using Web Deployment Projects with Web Application Projects I ran into an issue which is rather obvious after the fact, but thought it would be good to share for Google searchers.

When creating a new solution/project configuration (i.e. dev, test, production, etc.) in Visual Studio 2005, which is useful to do when using Web Deployment Projects, make sure you set the output path for the Web project to “/bin”. By default a new configuration gets an output path of “/bin/[configuration]”. If the web assembly is not in /bin, the aspnet compiler portion of the Web Deployment project will fail with errors like this:

error ASPPARSE: Could not load type ‘code behind class’

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>