Why do I get "Error CS2001 and CS2008"?

This error is due to permissions on the Windows "Temp" folder.

ASP.NET Web Services sometimes uses the system Temp folder when it processes WebMethods. If the thread that is processing the request uses an identity that does not have read/write access to that folder, you will receive the error message.

To avoid this problem, give read/write privileges for the Temp folder to the ASP.NET account. When ASP.NET Web Services processes WebMethods, the identity that is used most frequently to gain access to the system Temp folder is the local ASP.NET account, which is the default account under which ASP.NET applications run.

Published, May 24th 2009, 20:19