title: Permission denied when creating text file in asp
body: <p>I have the following code:</p>
  
  <pre><code>&lt;%
  dim deviceid
  dim fso
  dim outFile
  
  deviceid=Request.QueryString("deviceid")
  
  If deviceid&lt;&gt;"" Then
      Response.Write("Hello " &amp; deviceid &amp; "!&lt;br&gt;")
  
      Set fso = Server.CreateObject("Scripting.FileSystemObject")
      Set outFile = fso.CreateTextFile("C:\Users\Victor\Desktop\respTank.txt")
      outFile.WriteLine("Hello World!")
      outFile.close
  
      set outFile = nothing
      set fso = nothing
  
  End If
  %&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre>Microsoft VBScript runtime error '800a0046'
  Permission denied</pre>
  
  <p>I gave all permissions to IIS_IUSRS but it didn't help. Can anyone help me here?</p>