Geeks With Blogs
marocanu2001 technicle blog
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 on Tuesday, May 20, 2008 12:12 AM | Back to top


Comments on this post: Visual Studio 2008 System.Runtime.InteropServices.COMException

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by Jerry Odom on May 27, 2008 9:21 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
I am glad it helped someone :)
Left by marocanu2001 on May 27, 2008 6:34 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by James on Jun 04, 2008 12:41 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by Kekoa on Jun 12, 2008 6:44 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by Kekoa on Jun 12, 2008 6:44 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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
Left by RR on Sep 05, 2008 5:42 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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
Left by marocanu2001 on Sep 08, 2008 4:55 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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!
Left by programmer guy on Oct 16, 2008 12:32 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thank you so much!! you saved me from a potential problem!! nice one!
Left by Oregato on Nov 04, 2008 4:17 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
thank you!
Left by bob on Nov 28, 2008 3:37 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
thanks a heap, same as other people ..... you've saved me a lot of time.
Left by Rob on Jan 30, 2009 12:49 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks to the post! I got bugged with the exception, dint know what to do! This post saved my time!
Left by sheela on Apr 06, 2009 9:31 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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
Left by Rich on Apr 16, 2009 4:18 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks i had the same problem
Left by Thank you on May 15, 2009 6:51 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thank you for the answer, reinstalling the iis server done the trick for me.. it is working correctly now.. Thanks for this post.
Left by SaravanaKumar on Jun 08, 2009 3:45 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by omory on Jul 09, 2009 9:37 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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
Left by stephen morrissey on Jul 10, 2009 10:30 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks my friend...you really helped me with your advice!!!
Left by Eduardo Slee on Jul 11, 2009 10:41 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
thanks dude.
Left by trin on Aug 20, 2009 4:03 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Rock ON!
Left by chris on Aug 21, 2009 1:02 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks a bunch! This helps me a lot and saved my time. Even MS doesn't have a proper support on this!
Left by Prasanna on Aug 26, 2009 12:45 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Doing a vs.net 2008 repair and deleting my .user file made it work for me, IIS6/XP install.
Left by Jay on Sep 22, 2009 11:12 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Running VS as an administrator also solved the issue
Left by Samuel on Oct 12, 2009 3:20 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
See this and no IIS install is required:
http://www.dotnetgoodies.com/article/Visual_Studio/64/Visual_Studio_2008_SystemRuntimeInteropServicesCOMException.aspx
Left by stare on Nov 03, 2009 8:21 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Very good thanx
Left by www.onlineisgrat.com on Nov 23, 2009 8:00 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
My problem was the exact same one.
Thanks a lot!
Left by Deepak on Dec 14, 2009 7:40 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Solution Details:
Once the solution opens, right-click on the unavailable project and select Edit project_file_name.vbproj.
Scroll to the bottom of the page, and delete the ProjectExtensions section.
Save the page.
Right-click again on the unavailable project, and select Reload Project.
Your project should now be available and you should be able to see all your project files.
When you save your project, the ProjectExtensions section will be rewritten with the updated (correct) values needed to open your project in Visual Studio 2008.

Left by Jay on Jan 07, 2010 4:13 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
The solution that worked for me is:

Once the solution opens, right-click on the unavailable project and select Edit project_file_name.vbproj.
Scroll to the bottom of the page, and delete the ProjectExtensions section.

thanks for hte help
Left by Steve on Jan 25, 2010 6:44 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
One other solution for me, was to open the csproj file, and set UseIIS to false.
Thank you for this great blog. Helped me alot.
Left by Lasse Kofoed on Feb 09, 2010 7:20 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thans for this problems solutions. I install IIS and repaair .NET. Last I Edit unavailable project and delete the ProjectExtensions section like say Steve.
Now my project haven't this error and ok.
Thans a lot...
Left by Mustafa Celikpence on Jun 18, 2010 9:29 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks your suggestion worked.
Left by Basantilal on Jun 20, 2010 12:41 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
This error popped up... I found your article (thanks!) but wanted to dig deeper prior to deleting/repairing/etc. The culprit ended up being that the machine.config had a bad entry in it (we store config info here instead of web.config and someone had entered a partial comment).
Left by Ryan J. on Jun 24, 2010 3:00 AM

# Offshore software development
Requesting Gravatar...
Nice article. It really gave us a lot of information. We were trying to get information on some subject which is related to this to an extent for last couple of days and this article really helped us. Good job !
Left by Alok Kumar on Jul 03, 2010 9:32 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
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.
Left by droberry on Jul 09, 2010 6:49 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks. This helped me in Windows 7. I copied a solution from XP to Windows 7 and when trying to open it got this error. I had already installed IIS though, but thanks to previously trying to create a website with VS2008 on Windows 7, I knew (because it tells you) that I had to run VS as administrator. As soon as you mentioned IIS I knew what I had to do.
Left by marc on Jul 14, 2010 1:00 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Hello,great post. Information are pretty exciting and saved me huge amount of time which I have spend on something else instead of searching posts like this. I am waiting for more.
Left by Android Application Development on Dec 28, 2010 6:45 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Hi All,
As mentioned by 'Kekoa' in the comments on 6/12/2008 6:44 AM... it is working fine,
the solution is
Changing <UseIIS>True</UseIIS>
to
<UseIIS>False</UseIIS>
in the 'Project file'
Left by Anantha RishiKesan Thamotharan on Jan 16, 2011 4:40 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks a lot for this post. I am to fix the www.UCTLife.co.za website, but each time I try to Run its Solution, the specific project I must work on throws me that little bundle of joy.
Left by Eon du Plessis on Mar 06, 2011 10:52 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
It worked for me by changing UseIIS setting of project.
Thanks a lot.
Left by P on Sep 15, 2011 8:10 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks. This helped a lot. By setting <UseIIS>False</UseIIS> in *.Web <ProjectExtensions> allowed me to open in VS2oo8.
Left by Prabhu on Oct 29, 2011 4:48 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
I am really inspired together with your writing abilities as smartly as with the structure for your weblog. Keep up the excellent quality writing, it's uncommon to see a nice blog like this one nowadays.
Left by joomla developers on Dec 21, 2011 5:23 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Hi,

Post sent by Jay on 1/7/2010 4:13 PM worked for me. Big Thanks!! You are superb.

Left by Divya on Jan 31, 2012 7:26 PM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
but each time I try to Run its Solution, the specific project I must work on throws me that little bundle of joy.
Left by kitchen cabinets on Feb 08, 2012 7:25 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Hi Guys,
for me I just run VS2008 as Administrator and it worked.
A commend from here give me the idea so I want it to share it
Left by proteo5 on Apr 19, 2012 8:37 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Hi, I encountered a similar error message of which I've provided an extract below.

"Unresolved exception occurred on the precalculation server
System.Runtime.InteropServices.COMException (0x800 0A03EC): Microsoft Excel cannot access the file
'C \Program Files (x86)\Common Files\SAP Shared\BW\
BE ExAnalyzer.xla'. There are several possible reason"

As you can see in the last line above, the file name has been incorrectly spelled as "BE ExAnalyzer.xla", instead of "BExAnalyzer.xla", which is the actual file name. Can you please let me know where I can modify this setting and correct the path name?

Regards,
Nate
Left by Nate on May 01, 2012 6:21 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
Thanks a lot!
Special thanks to @Steve
Left by reljicb on Aug 05, 2012 9:05 PM

# re: Visual Studio 2010 System.Runtime.InteropServices
Requesting Gravatar...
How to set this as reference in visual studio 10
Left by Rakib on Sep 07, 2012 11:42 AM

# re: Visual Studio 2008 System.Runtime.InteropServices.COMException
Requesting Gravatar...
thank you for yours answer!
Left by ZhangJH on Apr 18, 2014 2:02 AM

Your comment:
 (will show your gravatar)


Copyright © marocanu2001 | Powered by: GeeksWithBlogs.net