News

Subscribe!

Disclaimer

This blog and the postings therein are provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the general copyright terms.

My Stats

  • Posts - 100
  • Comments - 39
  • Trackbacks - 38

Twitter












Tag Cloud


Recent Comments


Recent Posts


Article Categories


Archives


Post Categories


Image Galleries


.NET Links


.Text Links


Blogs i read...


eGovernment


ePolicing


Microsofty


Misc.


Mountain Biking


MS Patterns & Practices



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.

System_Runtime_InteropServices_COMException

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

 

Technorati Tags:

posted @ Saturday, February 16, 2008 5:47 PM | Filed Under [ ASP.NET ]

Comments

Gravatar # re: Visual Studio 2008 - COMException when loading web project - Solution
Posted by Rik Hemsley on 3/28/2008 11:23 PM
Saved me a lot of hassle, thanks!
Gravatar # re: Visual Studio 2008 - COMException when loading web project - Solution
Posted by Matt on 4/17/2008 6:06 PM
THANK YOU !!!!!
Gravatar # re: Visual Studio 2008 - COMException when loading web project - Solution
Posted by J. Johnson on 5/16/2008 1:38 PM
Thank you! You can also set the UseIIS element to false.
Gravatar # re: Visual Studio 2008 - COMException when loading web project - Solution
Posted by Ruud v F, Lectric NL on 6/10/2008 1:29 PM
Thanks!!
Gravatar # re: Visual Studio 2008 - COMException when loading web project - Solution
Posted by ILICH on 7/25/2008 6:12 PM
Don't forget to install Windows feature on Vista:
"IIS->Web Management Tools->IIS6 Management compatbility -> IIS Metabase and IIS6 configuration compatibility" component.
Post a comment





 

Please add 4 and 2 and type the answer here: