FIX: A syntax error occurs when you use the ILASM utility to generate a PE file from the MSIL assembly language (920741)



The information in this article applies to:

  • Microsoft .NET Framework 1.1 Service Pack 1 (SP1)
  • Microsoft .NET Framework 1.1

SYMPTOMS

When you use the ILASM utility to generate a portable executable (PE) file from the Microsoft intermediate language (MSIL) assembly language, you receive the following error message:
error : syntax error at token 'int16' in: .field public marshal( fixed array [20] int16) int16[] ident
This problem typically occurs when you specify an ArraySubType parameter in the MarshalAs attribute for the application.

CAUSE

This problem occurs because the ILASM utility sometimes does not correctly handle native type specifiers on fixed length arrays in the marshaling signature.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

Note You must have a Visual Studio license agreement to obtain this hotfix.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: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 1.1 installed to apply this hotfix.

Restart requirement

You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix is not replaced by any later hotfix.

Hotfix file information

This hotfix contains only the files that are required to correct the issues that this article describes. This hotfix may not contain of all the files that you must have to fully update a product to the latest build.
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.
File nameFile versionFile sizeDateTimePlatform
Ilasm.exe1.1.4322.2367196,60809-Jun-200607:49x86

WORKAROUND

To work around this problem, remove the ArraySubType parameter from the MarshalAs attribute.

Note This behavior will change the interface and may prevent the code from working correctly.

STATUS

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

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

REFERENCES

For more information about the Microsoft Intermediate Language (MSIL), visit the following Microsoft Web site:For more information about the ILASM utility, visit the following Microsoft Web site:For more information about the ILDASM utility, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:8/22/2006
Keywords:kbNetFrame110preSP1fix kbQFE kbhotfixserver KB920741