Granting write permissions to a networked UNC folder for ASP.NET under IIS 7.5 and Windows Server 2008 R2

前端 未结 3 2123
闹比i
闹比i 2020-12-28 15:28

BLUF

Our application is attempting to write a file to a UNC folder using an ASP.NET web service running under .NET 4.5, IIS 7.5, and Windows Server 2008 R2. Howeve

3条回答
  •  执笔经年
    2020-12-28 15:52

    1. Reboot your 'mywebserver'.

    2. Marvel at the now mysteriously functional ApplicationPoolIdentity.

    3. Install MS HotFix KB2545850 and learn the details about this bug in KB2672809 which also shows the steps to reproduce and demonstrate this apparently random problem. Direct download link here.

    4. Speculate why Microsoft has not managed to release a normal windows update for this in the 3 years since that hotfix was published. While people still continue running into it and pulling their hair out because of this obscure problem.

    5. Learn about the other folks who have shared and enjoyed this gift from MS that still continues to keep on giving:

      • IIS application using application pool identity loses primary token?
      • DirectoryServicesCOMException 80072020 From IIS 7.5 Site Running Under ApplicationPoolIdentity
      • ApplicationPoolIdentity cannot access network resources
      • ApplicationPoolIdentity IIS 7.5 to SQL Server 2008 R2 not working
      • Windows Authentication Failed when using application pool identity
      • IIS 7.5 stops using machine account to connect to network resource when using AppPoolIdentity

    Your Windows 7 dev machine probably worked fine because it reboots more often than the server. Congrats on your very well written and thorough bug report. I rarely see that here.

提交回复
热议问题