System Runtime InteropServices.COM Exception error message

Asked By 0 points N/A Posted on -

I have been having a terrible time, from the past few days. My PC which was running Windows XP had an infection and corrupted most of the Windows files and drivers.

I had to literally clean it up and upgrade it to Windows Vista, for more security reasons. Now when I try to open a web application project, which is set up to use IIS, I get an error message. I have MS visual Studio 2008 installed on my machine and I am logged in as admin.

Can someone explain me step by step manner of how to resolve this issue?

Microsoft Visual Studio


Answered By 0 points N/A #115032

System Runtime InteropServices.COM Exception error message



Microsoft Visual Studio Error


The above error occurred when IIS file is not compatible and that is the reason why, system runtime caused the problem. In order to resolve the issue, please see the following procedures:

Install an IIS7 component – – IIS Metabase and IIS 6 configuration compatibility. You must install the right version to your computer and please take note that you do not use default installation setup. Instead, you must choose install IIS 7.

Close and run MS Visual Studio.

Reload the project

See the link for your reference: Microsoft Forums


Answered By 590495 points N/A #314564

System Runtime InteropServices.COM Exception error message


The full error reads “System.Runtime.InteropServices.COMException”. If you encounter this problem with Microsoft Visual Studio 2008 after upgrading your operating system, try installing IIS 6 Management Compatibility. After this, create the correct virtual directories or virtual folders. If virtual folders already exist, make some corrections on the folders to create the right virtual directories. This should fix the problem.

For the correct virtual directories, open the “.csproj” file then locate this XML tag:

  • <IISUrl>http://……local/TestWeb</IISUrl>

This virtual directory must exist. Another possible instance of getting the error is with Microsoft .NET Framework 2.0 in this scenario:

  • You have a web page created with Microsoft ASP.NET where the AspCompat attribute is set to “true”.
  • The querystring data or form data contains a TAB character and you submit it using a postback event.
  • You try to access the Active Server Pages (ASP) intrinsic objects using COM components.

A failure occurs in this scenario and the following message is triggered:

“Description: An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))”

In this case, the problem happens when the querystring or form data is marshaled from the managed code to the native code. Here, data is encoded as a string and the TAB character is used to separate different entries. But when the data already has entry values that contain a TAB character, the newly introduced TAB character corrupts the data in the native code during decoding process.

In this scenario, you need a supported hotfix from Microsoft. To fix the problem, you need to contact Microsoft Customer Support Services to obtain the hotfix. Additionally, you need to have Microsoft .NET Framework 2.0 Service Pack 2 installed on your computer to apply the hotfix.

Related Questions