开发者

Unable to generate a temporary class (result=1) with wcf

开发者 https://www.devze.com 2023-02-06 02:14 出处:网络
I am getting this error from my wcf serv开发者_StackOverflow中文版ice System.Exception: Unable to generate a temporary class (result=1).

I am getting this error from my wcf serv开发者_StackOverflow中文版ice

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

Currently the identity that the service runs as does not have access to C:\WINNT\TEMP, my question is how do I change the location .Net 3.5 SP1 sticks temporary classes. I would like to have it put everything in E:\Temp. Is this possible?

Thanks,


You can try setting the TEMP environment variable:

        System.Environment.SetEnvironmentVariable("TEMP", @"E:\Temp");
0

精彩评论

暂无评论...
验证码 换一张
取 消