Visual Studio 2008 – COMException when loading web project – Solution16 February 2008
I recently discovered the cause and resolution of an error (Microsoft Visual Studio – System.Runtime.InteropServices.COMException) I received when loading a web project in Visual Studio 2008.
Whilst it would appear that this message can be displayed for a number of reasons (see Bug Report at bottom of post), in my case it was through the web project not being accessible through IIS…
Specifically, I had change the hostheader name of the IIS Virtual Host – the visual studio project had not been updated to point to the new hostheader. Simply close the solution, update the project file to point to the new url and load it again. bingo!
Associated Microsoft Bug Report – http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=317124