[英]IIS app now requires physical path credentials
I have an application developed using ASP.NET Web API deployed to a site in IIS. 我有一个使用ASP.NET Web API开发的应用程序,该应用程序部署到IIS中的站点。 Recently the application began crashing during initialization due to an exception saying that it could not access a particular folder (where it writes logs to).
最近,由于出现异常,表明它无法访问特定的文件夹(在其中写入日志),该应用程序在初始化期间开始崩溃。 The app pool being used by the site uses a domain account and I verified that that account has full permissions on the folder, just as it always has.
该站点正在使用的应用程序池使用一个域帐户,我已验证该帐户对文件夹具有完全的权限,就像以前一样。 What wound up fixing the problem for me was to specify the username and password of a user who has access to the folder in the site's Physical Path Credentials field.
对我来说,解决此问题的最终方法是在站点的“物理路径凭据”字段中指定有权访问该文件夹的用户的用户名和密码。 Previously this had been set to "Application user (pass-through authentication)".
以前,它已设置为“应用程序用户(通过身份验证)”。
What could have changed in the application or IIS configuration to suddenly require this field to be set? 应用程序或IIS配置中有哪些更改可能突然导致需要设置此字段?
It turns out that this came down to a permissions issue. 事实证明,这归结为权限问题。 Write permissions on the folder for IIS_IUSRS got changed from Allow to Deny.
IIS_IUSRS文件夹上的写权限已从“允许”更改为“拒绝”。 After switching that back to Allow, I can remove the Physical Path Credentials setting.
将其切换回“允许”后,我可以删除“物理路径凭据”设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.