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

后端 未结 13 961
广开言路
广开言路 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:34

    For those looking here as I did, if the accepted answer doesn't resolve the issue you might try following this article: http://lordzoltan.blogspot.com/2011/02/aspnet-2-and-4-default-application-pool.html

    In summary, it seems that the same error is sometimes displayed when the app pool user doesn't have access to the %TMP%/%TEMP% folder.

    You'll need to grant IIS_IUSRS read and modify access over the temp folder of the user the app pool is running as.

    This could either be the temp folder in the app pool user's profile, e.g. c:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp, or the system temp folder at c:\windows\temp.

    Setting this up this resolved the issue for me.

提交回复
热议问题