“CS0016: Could not write to output file” error when starting an app in IIS 7

后端 未结 13 964
广开言路
广开言路 2020-12-08 22:16

I am running Windows 7, and am not usually a developer in this setting, and have recently built a WCF Rest Service in C#, that I\'m now trying to deploy to IIS just on my lo

13条回答
  •  情歌与酒
    2020-12-08 22:40

    I granted read and write access to C:\Windows\Temp for the IIS_WPG group. This worked for me. I'm on Server 2003 R2 and IIS 6 and the group name is different. I fount it from http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis/ where it says:

    •The IUSR built-in account replaces the IUSR_MachineName account.

    •The IIS_IUSRS built-in group replaces the IIS_WPG group.

    Thanks to Dommer for suggesting the windows temp folder and to zcrar70 for the nice summery and a link with detailed description.

提交回复
热议问题