WebSite to WebApplication in Visual Studio 2005 in 5 seconds flat!

by Guillermo 4. April 2008 10:59

I've run across this scenario a few times now, and other than for the last 2, because the lag between was somewhat significant, it made me stumble enough to frustrate me 10 minutes at a time.

I tried installing the Web Application and running the Convert To Web Application command from the context menu... no go. 

Of course installing the add in is still a requirement in order to use a WebApplication project within Visual Studio 2005, pre SP1.  The project type is included With Visual Studio 2005 SP1, and it is actually a requirement that you uninstall the fix prior to installing the Service Pack.

So, my solution to the quick conversion after unsuccessfully attempting the conversions via IDE commands and tools, is as follows:

  • Remove your project from your solution.
  • Open a windows explorer window and navigate to the folder containing your project files.
    • Inside your project folder you will find a .webinfo file for the project you are converting, so if for instance your project file name is MyCDCollection.csproj, you will see a MyCDCollection.csproj.webinfo file along side it.
  • DELETE that file!
  • Add the project via "Add Existing Project" back to your solution.

This should take care of it, and now your project is a Web Application project and not a Web Site "project".

Tags: , ,

Development | Tools

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Extensive SEO

About the author

Something about the author

Your Most Recent Comments

Comment RSS

Page List