title: Configuring Temporary Folder used by a Web Service Client
body: <p>We have a stand alone .NET console program EXE that upload a file to sharepoint using sharepoint web service. This is run by corporate scheduler. Due to restrictions in folder permissions imposed by server security team, we are getting below error during this upload.</p>
  
  <blockquote>
    <p>Could not find a part of the path
    'C:\Users\TEMP\AppData\Local\Temp\7rcptgnc.tmp'</p>
  </blockquote>
  
  <p>The application code do not explicitly access the temporary folder , it only calls the web service with file stream. </p>
  
  <p><strong>Question is :</strong> Is there a way to provide a setting in exe.config to use a specific folder for temp files to prevent it from using default temp folder.</p>
  
  <p>Changing environment variables to change the windows temp folders and adding permissions to the above temp folder are not preferred options.</p>