Error : CS 2001 and CS 2008

Error:

Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\WINDOWS\TEMP\filename.cs’ could not be found error CS2008: No inputs specified

Cause:

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.

Solution:


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.

Which by default is C:\windows\Temp

  1. Right Click on Temp->properties
  2. Go to Security Tab->Click on Continue
  3. Add Everyone to the group
  4. After adding,check READ and LIST FOLDER CONTENTS under Allow
Advertisements

One thought on “Error : CS 2001 and CS 2008

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s