ITPub博客

首页 > IT职业 > IT图书 > Access is denied

Access is denied

IT图书 作者:tomlzy 时间:2021-09-09 09:48:35 0 删除 编辑

昨天有学习ASP.NET MVC的publish和IIS发行网站《简单的ASP.NET MVC发布》http://www.cnblogs.com/insus/p/4466200.html 。今天有在IIS :
图片描述


发行另一个网站,在浏览时,它得到一个错误error提示:Access is denied。

Server Error in '/Aa' Application.


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.            
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.


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009

因为此应用程序使用windows验证,可以从Web.config中查看得到:
图片描述


既然是这样,可以尝试如下解决,打开IIS,选中你的应用程序Application。
图片描述

 

再打开Authentication:
图片描述


启用为Enable之后,问题解决。

再次浏览:
图片描述



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3278/viewspace-2812836/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    83
  • 访问量
    653