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
Polyglot & Pragmatic Programmer • Developer Advocate, IBM Cloud • Intel software Innovator • DZone MVB
(Visited 4 times, 1 visits today)

You may also like...

  • arkord

    Thanks you helped me a lot

Show Buttons
Hide Buttons