Article ID: 937685 - Last Review: June 5, 2007 - Revision: 1.1

Error message when you register an assembly in SQL Server 2005: "CREATE ASSEMBLY for assembly 'Microsoft.SqlServer.Smo' failed because assembly 'microsoft.sqlserver.batchparser' is malformed or not a pure .NET assembly"

Expand all | Collapse all

SYMPTOMS

When you register an assembly in Microsoft SQL Server 2005, you receive the following error message:
Server: Msg 6544, Level 16, State 1, Line 1
CREATE ASSEMBLY for assembly 'Microsoft.SqlServer.Smo' failed because assembly 'microsoft.sqlserver.batchparser' is malformed or not a pure .NET assembly.
Unverifiable PE Header/native stub.
This problem occurs if the assembly references the Microsoft.SqlServer.Management.Smo namespace.

Note The Microsoft.SqlServer.Management.Smo namespace resides in the Microsoft.SqlServer.Smo.dll file.

CAUSE

This problem occurs because you cannot use the Microsoft.SqlServer.Management.Smo namespace in the common language runtime (CLR) integration feature in SQL Server 2005.

STATUS

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

APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB937685
 

Article Translations

 

Related Support Centers