IIS Express 在调试 ASP.NET MVC 时出现拒绝访问错误 [英] IIS Express gives Access Denied error when debugging ASP.NET MVC

查看:52
本文介绍了IIS Express 在调试 ASP.NET MVC 时出现拒绝访问错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 ASP.NET MVC 3 项目,并且在开发时使用 IIS Express 作为 Web 服务器.当我尝试调试时,我收到以下错误消息.

I have created an ASP.NET MVC 3 project, and am using IIS Express as the web server when developing. When I try to debug, I get the error message below.

如何解决?

/"应用程序中的服务器错误.

Server Error in '/' Application.

访问被拒绝.描述:访问服务此请求所需的资源时发生错误.服务器可能未配置为访问请求的 URL.

Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

错误消息 401.2.:未经授权:由于服务器配置,登录失败.根据您提供的凭据和 Web 服务器上启用的身份验证方法,验证您是否有权查看此目录或页面.如需更多帮助,请联系 Web 服务器的管理员.

Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.

推荐答案

如果您使用的是 Visual Studio,您还可以在解决方案资源管理器中左键单击项目并更改 Windows在属性窗口中将身份验证属性设置为已启用.

If you are using Visual Studio, you can also left-click on the project in Solution Explorer and change the Windows Authentication property to Enabled in the Properties window.

这篇关于IIS Express 在调试 ASP.NET MVC 时出现拒绝访问错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆