asp.net发布webservice出现‘Could not write to output file ‘解决办法

Could not write to output file 'c:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files ooted69c77299da978eApp_Web_defaultwsdlhelpgenerator.aspx.cdcab7d2.zspwr2p9.dll' -- '拒绝访问。 '

解决办法:

是给Windows目录下的临时文件夹Temp的安全选项卡中加入NetWork Service用户并赋予全权

依次添加权限:

1. C:WindowsTemp 
2. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files 
3. Restart IIS and try run your web application again.

原文地址:https://www.cnblogs.com/Hackerman/p/4958766.html