 <p>You can alter the temp path for the XMLSerializer explicitly without having to change the environment variables for the machine. To do this, put </p> <pre><code>&lt;xmlSerializer tempFilesLocation="c:\\newTemp"/&gt; </code></pre> <p>in you app.config file. </p> <p>Scott Hanselman has an article entitled "<a href="http://www.hanselman.com/blog/ChangingWhereXmlSerializerOutputsTemporaryAssemblies.aspx" rel="nofollow noreferrer">Changing where XmlSerializer Outputs Temporary Assemblies</a>" about it.</p>