ASP.NET MVC Windows 身份验证 403 Forbidden: Access is denied
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3619448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ASP.NET MVC Windows Authentication 403 Forbidden: Access is denied
提问by Saxman
I'm developing an ASP.NET MVC 2 app using Windows Authentication. When I run it within Visual Studio (using the built-in IIS), under the same domain, I was able to login using my credential. But when I deployed it to the server, which is also on the same domain, in-house, I got the "403 - Forbidden: Access is denied." error.
我正在使用 Windows 身份验证开发 ASP.NET MVC 2 应用程序。当我在 Visual Studio 中(使用内置 IIS)在同一个域下运行它时,我能够使用我的凭据登录。但是,当我将它部署到内部服务器(也在同一域中)时,我收到了“403 - 禁止访问:拒绝访问”的消息。错误。
I notice that when running it from within Visual Studio, opening the site from IE automatically logs me on, no prompts. But when trying to access it from the server (again, on the same domain), IE prompts me to log-on, and eventually gave the 403 error.
我注意到从 Visual Studio 中运行它时,从 IE 中打开站点会自动登录,没有提示。但是当试图从服务器访问它时(再次,在同一个域上),IE 提示我登录,并最终给出 403 错误。
I'm not sure if there are extra settings that I need to do on my app, on the server, or both?
我不确定是否需要在我的应用程序、服务器或两者上进行额外设置?
采纳答案by John Farrell
Did you change the Application Pool to run under a privileged account?
您是否将应用程序池更改为在特权帐户下运行?