CS2001 CS2008

error CS2001: Source file 'C:\WINDOWS\TEMP\wctb8vqw.0.cs' could not be found error

CS2008: No inputs specified

 

 

Jun 07, 2006 12:57 PM|LINK

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");

posted @ 2012-03-31 13:02  lmllouk  阅读(282)  评论(0)    收藏  举报