title: System.IO.Path.GetTempPath() access denied
body: <p>im creating temporary files to be stored in the Temp folder found by:</p>
  
  <p><code>string path = System.IO.Path.GetTempPath()</code> 
  method returns C:\windows\Temp\</p>
  
  <p>i append my filename:</p>
  
  <pre><code>string filename = myfile.txt
  System.IO.Path.Combine(path,filename)
  </code></pre>
  
  <p>However, this gives me a</p>
  
  <p>"Message":"The given path\u0027s format is not supported.","StackTrace":" at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)\r\n   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)\r\n   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)\r\n   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions...... and so on</p>
  
  <p>I have tried modifying the rights to the TEMP folder, so that NETWORK SERVICES has rights..
  Any ideas?</p>