Question

I have a c# executable that triggers the WCF webservice in the same server.It was working fine until it started to throws 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 tried so far: Provided read/write access to the account that triggers the WCF

Recently the server crashed and restored from a backup server.Is there any chance that it is related to the error?

Était-ce utile?

La solution

I solved it.You have to provide the write access to temporary folder . I was providing this access to different user.The correct user id is the one that is mentioned in application pool of your web service.

Autres conseils

I think your project storing in Windows's temporal folder and 'mchgnxs3.0.cs' file can be deleted. Otherwise you should try to rename your script file (maybe 'mchgnxs3.0.cs' to 'mchgnxs3_0.cs').

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top