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

前端 未结 3 2124
闹比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条回答
  •  旧时难觅i
    2020-12-28 15:47

    I had similar problem accessing a network share using AppPoolIdentity in an ASP.NET application (access denied). Using NetworkService account or other domain account worked but these were not the best solution. I performed almost all the tests you did but finally found something that worked.

    I figured out that the Network Service account was not used when accessing the shares, just like you did (i expected domain\machine$ account)

    This worked for us: On your IIS web site, go to Authentication and change the Anonymous Authentication item to "Application Pool Identity". It's by default set to "IUSR". This solved our problem.

    Also maybe activating ASP.NET impersonation (still in Authentication menu) may help.

    Thibault

提交回复
热议问题