简体   繁体   English

IIS应用程序现在需要物理路径凭据

[英]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.

相关问题 如何在本地IIS服务器上获取网站的物理路径? (通过桌面应用) - How to get website's physical path on local IIS server? (from a desktop app) 以编程方式更改IIS 7应用程序物理路径 - Change IIS 7 application physical path programmatically 无法以编程方式更改 IIS 网站的物理路径 - Cannot progammatically change IIS website's physical path 如何获取网站/应用程序的物理路径 - How to get physical path of a website/app 应用相对路径到ASP.NET中的物理路径 - App Relative path to physical path in ASP.NET 在IIS上发布MVC应用程序,现在有错误 - 没有默认文件? - Publish MVC app on IIS, now has error - no default document? IIS Blazor App (Intr.net) 需要输入 Windows 凭据 - IIS Blazor App (Intranet) require entering Windows Credentials Server.MapPath(virtualPath)返回控制器的根目录,也不返回IIS中虚拟目录中提到的物理路径 - Server.MapPath(virtualPath) Returns root directory of controller, it is nor returns the physical path mentioned in the virtual directory in IIS 如何在IIS7和C#中更改虚拟目录的物理路径? - How can I change a virtual directory's physical path in IIS7 and C#? 如何使用 c# 获取 IIS 中站点的物理路径? - How can i get the Physical path of a site in IIS using c#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM