title: JScript Classic ASP "Automation server can't create object"
body: <p>I have a DLL registered on 3 different servers, one development and two production. <a href="https://stackoverflow.com/questions/9381707/registering-a-dll-on-64-bit-windows-server-2008-standard-sp2-iis-7">This</a> post helped registering it on the servers. </p>
  
  <p>No we are trying to put the site on a second production server so that we can load balance it. On development and one of the production servers, i can create my object and utilize it just fine. On the second production server, it gives me:</p>
  
  <blockquote>
    <p>Microsoft JScript runtime error '800a01ad'<br>
    Automation server can't create object<br>
    /code/FileSystem.asp, line 459</p>
  </blockquote>
  
  <p>Line 459 in this case is:</p>
  
  <pre><code>var oFSO = Server.CreateObject("Hydro.Comm.FileSystem");
  </code></pre>
  
  <p>Both production servers are Windows Server 2008 with latest patches installed. I am confused as to why the second server is not registering this DLL properly. </p>
  
  <p>We followed the following steps to register the DLL on each server:</p>
  
  <ul>
  <li><p>We needed to install the windows sdk for .net framework 4
  <a href="http://www.microsoft.com/download/en/confirmation.aspx?id=8279" rel="nofollow noreferrer">http://www.microsoft.com/download/en/confirmation.aspx?id=8279</a></p></li>
  <li><p>Then we needed to add the assembly to the GAC:  </p>
  
  <pre><code>C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools&gt;gacutil /i 
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\HydroComFileSystem.dll
  </code></pre></li>
  <li><p>Then we needed to register the assembly with regasm:  </p>
  
  <pre><code>regasm /tlb HydroComFileSystem.dll
  </code></pre></li>
  </ul>
  
  <p>Thanks for looking. </p>