ASP.NET MVC Windows 身份验证 403 禁止:访问被拒绝

发布于 2024-09-16 17:26:57 字数 293 浏览 4 评论 0原文

我正在使用 Windows 身份验证开发 ASP.NET MVC 2 应用程序。当我在 Visual Studio 中(使用内置 IIS)在同一域下运行它时,我能够使用我的凭据登录。但是,当我将其部署到内部服务器(也在同一域上)时,我收到“403 - 禁止:访问被拒绝”。错误。

我注意到,当从 Visual Studio 中运行它时,从 IE 打开该网站会自动登录,没有任何提示。但是当尝试从服务器访问它时(同样,在同一个域上),IE 提示我登录,并最终给出 403 错误。

我不确定是否需要在我的应用程序、服务器或两者上进行额外的设置?

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.

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.

I'm not sure if there are extra settings that I need to do on my app, on the server, or both?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不喜欢何必死缠烂打 2024-09-23 17:26:57

您是否将应用程序池更改为在特权帐户下运行?

Did you change the Application Pool to run under a privileged account?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文