News

Statistics

Locations of visitors to this page

Personal


Last couple of days I made a terrible decision: reinstall my computer. So I reinstalled Windows (XP) three times in the last two days (the dvd with Visual Studio 2008, for some reason, kept killing my CPU)  and finally I managed to install VS 2008 and start configuring th ASP.net project I am working on and kept reinstalling whatever I needed, on the flow.
To my huge surprise I could no longer open the solution with Services. The exception message was really helpful : 

System.Runtime.InteropServices.COMException

What I should have realized before starting to google for it ... : I had not previously installed IIS :)
After I installed it Visual Studio was able to tell me that I sholud configure the Virtual Directories for the web serivices :)

posted @ Tuesday, May 20, 2008 12:12 AM |

Comments

Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Jerry Odom on 5/27/2008 9:21 AM
Thanks for this post. Really helped me out with something I thought would take hours to run down. Thanks to this it was 15 minutes.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by marocanu2001 on 5/27/2008 6:34 PM
I am glad it helped someone :)
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by James on 6/4/2008 12:41 PM
I got this problem when i moved my solution from XP to Vista (both vs 2008).

I fixed it by installing an IIS 7 component called 'IIS Metabase and IIS 6 configuration compatibility', which wasnt selected by default when I installed IIS 7. Then restart VS and reload the project.

This component probably allows VS to access IIS 7 as if it were IIS 6.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Kekoa on 6/12/2008 6:44 AM
Thanks for this post, I copied my project from a computer that used IIS for debug to one that I did not have IIS. I deleted my .csproj.user file and that removed the user settings. I guess if you are storing that info in your main project file you need to take the additional steps.

Thanks again you saved me lots of time.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Kekoa on 6/12/2008 6:44 AM
Thanks for this post, I copied my project from a computer that used IIS for debug to one that I did not have IIS. I deleted my .csproj.user file and that removed the user settings. I guess if you are storing that info in your main project file you need to take the additional steps.

Thanks again you saved me lots of time.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by RR on 9/5/2008 5:42 PM
I have 2 projects one live and one demo. The demo works perfectly fine and live one gives problem. Both projects are on my pc are are wimdoes application. Can some one tell me soln for windows application

Thanks in advance
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by marocanu2001 on 9/8/2008 4:55 AM
I am not sure what is your problem. Can you give some more details? You have a desktop application and you get this error in production but there is no problem in demo? Are there any services involved ... ?
tnx
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by programmer guy on 10/16/2008 12:32 PM
I have recently been given a new laptop to work with and was getting this error. I hadn't noticed IIS wasn't installed. Thanks for the solution!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Oregato on 11/4/2008 4:17 AM
Thank you so much!! you saved me from a potential problem!! nice one!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by bob on 11/28/2008 3:37 PM
thank you!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Rob on 1/30/2009 12:49 AM
thanks a heap, same as other people ..... you've saved me a lot of time.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by sheela on 4/6/2009 9:31 PM
Thanks to the post! I got bugged with the exception, dint know what to do! This post saved my time!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Rich on 4/16/2009 4:18 PM
I copied an asp.net (VS2008 C#) project from one XP machine (where the project loads and works fine) to a new XP laptop (32 bit) which is running IIS. When I tried to load the project I also get this error message:

System.Runtime.InteropServices.COMException

It looks like someone installed an additional component to IIS to resolve this problem. What component is this? Where do I find it? Is it on the XP CD?

Thanks
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Thank you on 5/15/2009 6:51 PM
Thanks i had the same problem
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by SaravanaKumar on 6/8/2009 3:45 AM
Thank you for the answer, reinstalling the iis server done the trick for me.. it is working correctly now.. Thanks for this post.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by omory on 7/9/2009 9:37 AM
here's what worked for me, I opened the VS2008 project file(C# or vb) in wordpad and edited the "<IISUrl>" tag to point a virtual directory path already configured for the projects containing folder.

thanks for the post hope this helps others.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by stephen morrissey on 7/10/2009 10:30 AM
Well for me my local network administrators decided to remove admin rights from my computer...retored the rights logged on and off all back to normal
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Eduardo Slee on 7/11/2009 10:41 PM
Thanks my friend...you really helped me with your advice!!!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by trin on 8/20/2009 4:03 PM
thanks dude.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by chris on 8/21/2009 1:02 PM
Rock ON!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Prasanna on 8/26/2009 12:45 PM
Thanks a bunch! This helps me a lot and saved my time. Even MS doesn't have a proper support on this!
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Jay on 9/22/2009 11:12 AM
Doing a vs.net 2008 repair and deleting my .user file made it work for me, IIS6/XP install.
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by Samuel on 10/12/2009 3:20 AM
Running VS as an administrator also solved the issue
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by stare on 11/3/2009 8:21 AM
See this and no IIS install is required:
http://www.dotnetgoodies.com/article/Visual_Studio/64/Visual_Studio_2008_SystemRuntimeInteropServicesCOMException.aspx
Gravatar # re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Posted by www.onlineisgrat.com on 11/23/2009 8:00 AM
Very good thanx
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: