title: IIS Permissions for Saving Word Documents
body: <p>Our ASP.NET/C# lets users edit and manage Word (OpenXML) documents that are hosted on a server. I am using client-side <code>VBScript</code> functions to handle some of the editing functions including saving the document to a folder on the server. For the save functionality, I am using the following function call :</p>
  
  <pre><code>Document.SaveAs "http://server/savefolder/savefile.docx" 
  </code></pre>
  
  <p>I have given "Full Control" permissions on savefolder to both the <code>NETWORK SERVICE</code> and the <code>IUSR_MACHINE</code> users. Yet the above call fails. The error number returned is <code>5096</code>. The error message is some gibberish that doesn't make any sense. </p>
  
  <p>The server is Windows 2003 and the IIS version is 6.0. I have installed the OpenXML SDK 2.0 CTP on the server. </p>
  
  <p>I can successfully read and print documents. </p>
  
  <p>Does anyone tell me what I am doing wrong? or what additional settings need to be in place? </p>
  
  <hr>
  
  <p>BTW, the error message ("gibberish" from my post) is:</p>
  
  <p>"EOALPHABETICARABICARABICABJADARABICALPHABAHTTEXTCAPSCARDTEXTCHARFORMATCHI"</p>
  
  <p>No, I am not making this up!</p>