System.Runtime.InteropServices.COMException while converting to VS 2008

Hi there,

today I converted my .Net 2.0 Visual Studio 2005 Web Application Project to Visual studio 2008 and .Net 3.5. I also moved it to a different machine. I ran into an error while converting some of the projects in my solution, preventing the entire project to load. I found a blogpost describing the error as being caused by a reference to IIS.

You can simply overcome this by opening your project's configuration file (.csproj) and changing the <UseIIS>True</UseIIS> node to false. This way the project will load and you will be able reconfigure wherever necesary

Hope this helps!
Rinze

Published Thursday, September 25, 2008 11:40 PM by rinze

Comments

# funny wallpaper &raquo; System.Runtime.InteropServices.COMException while converting to VS 2008

Pingback from  funny wallpaper &raquo; System.Runtime.InteropServices.COMException while converting to VS 2008

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Monday, October 06, 2008 9:20 AM by Adil Shaikh

Thanks .. this worked for me too.

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Wednesday, November 12, 2008 5:13 PM by Chris F

It happens to me when using Vista when I don't launch VS as an Administrator and try to open an IIS project.  If I right-click VS 2008 and select Run As Admin then I can open the project just fine.

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Friday, March 06, 2009 11:38 AM by Usman ur Rehman Ahmed

Thanks. Just find what I was looking for.

Chris, as far as I understand why it happens this way for you, is that a project configured to run in IIS requires access to IIS metabase, that's only configured to Admin user.

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Thursday, May 07, 2009 10:42 AM by Scott

Ooooh did the trick!

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Saturday, June 06, 2009 9:12 AM by bob e

Man that worked like a charm.  I thought I would be binging that System.Runtime.InteropServices.COMException for the next few hours.  Awesome

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Tuesday, November 17, 2009 9:22 AM by Rajesh Kumar

Visual studio 2008 comes with an inbuilt development server.So, Changing this tag <UseIIS>True</UseIIS> to false will work without giving any problems. This blog is simple and great. saved time....Awesome.

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Friday, February 26, 2010 7:37 PM by Mark S

Thanks for the easy solution (and also being the first search engine result)!

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Tuesday, December 28, 2010 6:29 AM by Abhishek Udiya

Thanks Rinze.

Awesome solution...

Keep it up.

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Thursday, February 17, 2011 2:27 AM by David

Worked for me too..

Thanks a lot!

# re: System.Runtime.InteropServices.COMException while converting to VS 2008

Tuesday, November 15, 2011 6:31 AM by Amarnath Chowdary

Thanks man :)

It really worked. Saved my time.

Thank u so much. Keep posting these. :)

Leave a Comment

(required) 
(required) 
(optional)
(required)