title: Error creating Word.Application in ASP-Classic on IIS7
body: <p>We are working to certify our application for deployment on Windows Server 2008 and having some configuration issues. </p>
  
  <p>The following code throws an interop error:</p>
  
  <pre><code>On Error Resume Next
  Set WordApp = Server.CreateObject("word.application")
  If Err.number &lt;&gt;0 Then
    SetErrorDesc ErrorDesc, "Unable to instantiate word. (" &amp; err.Description &amp; ")&lt;br&gt;"
    SetErrorStatus ErrorStatus,True
  End If
  </code></pre>
  
  <p>The error information returned in err.Description is: </p>
  
  <pre><code>006~ASP 0178~Server.CreateObject Access Error~The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
  </code></pre>
  
  <p>The site is configured to use a specific user account for its application pool. The site is a mixed-mode ASP.Net and asp-classic application. I have checked out Ogawa's solution regarding the need for the systemprofile to have a Desktop folder, and for the AppPool to be configured to load the user profile. The Word 97-2003 Document DCOM object is configured to run as the same user as the site's app pool. Launch and Activation, Access Permissions, and Configuration Permissions all that the user added with full permissions set.</p>
  
  <p>Edited to add: 
  When running interactively, this script (running under cscript or wscript) successfully creates the Word.Application and extracts the username:</p>
  
  <pre><code>var wordobj = new ActiveXObject("Word.Application");
  WScript.echo(wordobj.UserName);
  wordobj.quit();
  </code></pre>
  
  <p>Clearly not a duplicate of <a href="https://stackoverflow.com/questions/7675079/error-creating-word-object-in-classic-asp-on-iis7">Error creating Word object in classic ASP on IIS7</a> as we are getting the error on the CreateObject for Word.Application rather than when opening a document.</p>
  
  <p>The server is Windows 2008 x86.</p>
  
  <p>What have I missed in configuring this?</p>