FIX: A System.Runtime.InteropServices.COMException exception occurs when you use COM components in the .NET Framework 2.0 to access form data or querystring data that contains a TAB character

Article translations Article translations
Article ID: 973746 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario in the Microsoft .NET Framework 2.0:
  • You have a Microsoft ASP.NET Web page in which the AspCompat attribute is set to True.
  • You submit the form data or the querystring data by using a postback event. Additionally, the data contains a TAB character.
  • You try to access Active Server Pages (ASP) intrinsic objects by using COM components.
In this scenario, a failure occurs, and you receive the following error message:
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))

CAUSE

This problem occurs when the form data or querystring data is marshaled from the managed code to the native code. In this situation, the data is encoded as a string. Additionally, the TAB character is used to separate different entries. However, 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 the decoding process.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have the Microsoft .NET Framework 2.0 Service Pack 2 (SP2) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix, assuming the affected DLLs were not being used when you applied the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of Windows Server 2000, of Windows Server 2003, and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406030,54404-Aug-200905:01x86
System.web.dll2.0.50727.40605,242,88004-Aug-200905:01x86
Webengine.dll2.0.50727.4060435,53604-Aug-200905:01x86

For all supported x64-based versions of Windows Server 2000, of Windows Server 2003, and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406042,32004-Aug-200909:33x64
System.web.dll2.0.50727.40605,255,16804-Aug-200909:37x64
Webengine.dll2.0.50727.4060744,25604-Aug-200909:33x64

For all supported IA-64-based versions of Windows Server 2000, of Windows Server 2003, and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406082,25604-Aug-200900:43IA-64
System.web.dll2.0.50727.40604,771,84004-Aug-200900:45IA-64
Webengine.dll2.0.50727.40601,229,12004-Aug-200900:44IA-64

For all supported x86-based versions of Windows Vista SP2 and of Windows Server 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406130,52812-Aug-200907:04x86
Webengine.dll2.0.50727.4061435,52012-Aug-200907:05x86
System.web.dll2.0.50727.40615,242,88012-Aug-200907:04x86

For all supported x64-based versions of Windows Vista SP2 and of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406142,32012-Aug-200907:04x64
Webengine.dll2.0.50727.4061744,25612-Aug-200907:04x64
System.web.dll2.0.50727.40615,255,16812-Aug-200907:04x64

For all supported IA-64-based versions of Windows Server 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.406182,24012-Aug-200907:05IA-64
Webengine.dll2.0.50727.40611,229,12012-Aug-200907:05IA-64
System.web.dll2.0.50727.40614,771,84012-Aug-200907:05IA-64
For all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Aspnet_wp.exe2.0.50727.493730,54417-Nov-200923:30
Webengine.dll2.0.50727.4937436,04817-Nov-200923:30
System.web.dll2.0.50727.49375,246,97617-Nov-200923:30
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Aspnet_wp.exe2.0.50727.493742,32017-Nov-200923:30
Webengine.dll2.0.50727.4937744,78417-Nov-200923:30
System.web.dll2.0.50727.49375,255,16817-Nov-200923:30
For all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Aspnet_wp.exe2.0.50727.493782,25617-Nov-200923:30
Webengine.dll2.0.50727.49371,230,67217-Nov-200923:30
System.web.dll2.0.50727.49374,775,93617-Nov-200923:30

WORKAROUND

To work around this problem, either avoid calling the AspCompatRequest::get_Form method in COM components or manually encode tab characters in the input data.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 973746 - Last Review: February 23, 2010 - Revision: 2.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 2.0 Service Pack 1 (x86)
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe kbhotfixserver KB973746

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com