title: How to register System.DirectoryServices for use in SQL CLR User Functions?
body: <p>I am porting an old 3<code>2-bit COM</code> component that was written in <code>VB6</code> for the purpose of reading and writing to an <code>Active Directory</code> server.  The new solution will be in <code>C#</code> and will use <code>SQL CLR</code> user functions.  </p>
  
  <p>The assembly that I am trying to deploy to <code>SQL Server</code> contains a reference to <code>System.DirectoryServices</code>.  The project does compile without any errors but I am unable to deploy the assembly to the <code>SQL Server</code> because of the following error:</p>
  
  <p><code>Error: Assembly 'system.directoryservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.' was not found in the SQL catalog.</code></p>
  
  <p>What are the correct steps for registering <code>System.DirectoryServices</code> on SQL Server? </p>