Failed to create a temporary class (result = 1)

I have a C # executable that runs the WCF web service on the same server. It worked fine until it started calling this error message

Message : Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\Windows\TEMP\mchgnxs3.0.cs' could not be found error CS2008: No inputs specified 

What I have tried so far: Provides read / write access to the account that runs WCF

Recently, the server crashed and was restored from the backup server. Is there a chance that it is associated with an error?

+7
source share
2 answers

I solved it. You must provide write access to the temporary folder. I have granted this access to various users. The correct user ID is the one specified in the application pool of your web service.

+9
source

I think that your project stored in the temporary Windows folder and the mchgnxs3.0.cs file can be deleted. Otherwise, you should try renaming your script file (possibly "mchgnxs3.0.cs" to "mchgnxs3_0.cs").

+1
source

All Articles