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

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

    There're 3 step to do:

    1 - check if "Application Pool Identity" is NetworkService
    
    2 - NETWORK_SERVICE account needs full control on:
        . C:\Windows\Temp
        . C:\Windows\Microsoft.NET\Framework[related framework]\Temporary ASP.NET Files\
    
    3 - restart the IIS
    

    Error Solved

    You could also try re-running regiis. "%windir%\Microsoft.NET\Framework[related framework]\aspnet_regiis -i"

提交回复
热议问题