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
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.
Which by default is C:\windows\Temp
- Right Click on Temp->properties
- Go to Security Tab->Click on Continue
- Add Everyone to the group
- After adding,check READ and LIST FOLDER CONTENTS under Allow