Access is denied

 2023-09-05 阅读 23 评论 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' Applicatio

昨天有学习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之后,问题解决。

再次浏览:




版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/1495.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息