How to register System.DirectoryServices for use in SQL CLR User Functions?

Posted by Saul Dolgin on Stack Overflow See other posts from Stack Overflow or by Saul Dolgin
Published on 2010-06-02T15:56:18Z Indexed on 2010/06/02 18:54 UTC
Read the original article Hit count: 342

I am porting an old 32-bit COM component that was written in VB6 for the purpose of reading and writing to an Active Directory server. The new solution will be in C# and will use SQL CLR user functions.

The assembly that I am trying to deploy to SQL Server contains a reference to System.DirectoryServices. The project does compile without any errors but I am unable to deploy the assembly to the SQL Server because of the following error:

Error: Assembly 'system.directoryservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.' was not found in the SQL catalog.

What are the correct steps for registering System.DirectoryServices on SQL Server?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about sql-server-2008