Microsoft KB Archive/937685

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

Article ID: 937685

Article Last Modified on 6/5/2007

-

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

-



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 &quot;Applies to&quot; section.

Keywords: kbexpertiseadvanced kbtshoot kbprb KB937685

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.