



















Create a folder say c:\foo, give the network service account write permissions.
In web.config, add a <compilation tempDirectory="c:\foo" /> entry. Now if MS had done their jobs properly that would be it, unfortunately Web Service serialization code is parsed to the system environment TEMP folder (or maybe TMP , I haven't quite managed to convince myself), so you need to add a global.asax and add this to the Application_Start
Environment.SetEnvironmentVariable("TEMP","c:\\foo"); Environment.SetEnvironmentVariable("TMP","c:\\foo");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。