title: Classic ASP using COM+ .Net Interop 64 Bit Windows Server 2008 IIS 7 Server.CreateObject Fails
body: <p>I am having an issue related to executing a .Net dll from a classic asp application on a 64 Bit Windows Server 2008 server running IIS7.  The situation is as follows:</p>
  
  <p>I have written a .Net C# assembly to perform some encryption tasks.  This assembly has been made available to the classic ASP environment via inheriting from ServicedComponent, ensuring the assemblyinfo file has the ComVisible(true) attribute, and it has been installed using the "regsvcs" command line.  </p>
  
  <p>When testing on my own desktop (XP running IIS6) everything worked fine.  When moving to IIS 7, Windows Server 2008 I get the infamous "ASP 0177 Server.CreateObject failed". </p>
  
  <p>I have tried the following to no avail:</p>
  
  <ol>
  <li>Ensuring the ASP and Script Extension features were installed on the server, as this is not the default for IIS7.  This allowed me to execute simple ASP commands, but not server.createobject for the .net assembly.</li>
  <li>Enabled 32 Bit application support for the app pool supporting the classic asp site</li>
  <li>Used NetworkService as the identity for the app pool supporting the classic asp site</li>
  <li>Tried registering dll using regsvr32, which failed</li>
  <li>I am able to create other objects such as "scripting.filesystemobject"</li>
  <li>Moving dll's to the wow64 directory and then using regsvcs to register them.</li>
  <li>And yes when I have been executing the regsvcs commands they have been from a command line launched with "RunAs" Administrator. The regsvcs commands have registred successfully
  from both the 64 and 32 bit versions.  However, when used from the classic asp application, it fails.</li>
  </ol>
  
  <p>This question is closely related to <a href="https://stackoverflow.com/questions/1208180/classic-asp-using-com-on-x64-windows-server-2008-and-iis7">this one</a>.  However, I think this question was more related to using tools on the server as opposed to a programatic problem similiar to mine.</p>
  
  <p>Anyone have any more ideas to try?</p>