403 - 禁止:拒绝访问。 ASP.Net MVC [英] 403 - Forbidden: Access is denied. ASP.Net MVC

查看:862
本文介绍了403 - 禁止:拒绝访问。 ASP.Net MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/1741439/asp-mvc-in-iis-7-results-in-http-error-403-14-forbidden\">ASP MVC在IIS 7结果:HTTP错误403.14 - 禁止

我发表我的服务器应用程序。当我输入我的域名我得到这个错误:

I published my application on server. When I enter my domain i got this error:

403 - 禁止:拒绝访问。
您没有权限使用您提供的凭据查看该目录或网页。

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.

什么是happend?

What's happend?

推荐答案

你可以尝试的另一件事是的设置运行所有请求所有管理模块选项下您的应用程序了的Web.config。

Another thing you can try is setting the "Run All Managed Modules for All Requests" option under in your applicaiton's Web.config.

  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"></modules>
    <handlers>
      <remove name="UrlRoutingHandler"/>
    </handlers>
  </system.webServer>

您需要的管理模块,如果您需要窗体身份验证来访问你的应用程序上的传入请求跑,因为窗体身份验证是一个管理模块。因此,如果你需要表单认证,但该模块未运行,IIS只是给出一个403错误,因为它不能让你的应用程序需要的一种认证方式。

You need the managed modules to run on incoming requests if you require Forms Authentication to access your application, because Forms Authentication is a managed module. So if you're requiring Forms Authentication, but that module isn't running, IIS just gives a 403 error because it can't get you the kind of authentication the application requires.

这篇关于403 - 禁止:拒绝访问。 ASP.Net MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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