问题描述
我使用Azure创建了一个默认应用程序.我首先启用了对该网站的访问,但随后又启用了匿名访问.
I created a default app using Azure. I first enabled the access to the site but then enabled back the anonymous access onto it.
此站点与OneDrive集成.
This site is integrated with OneDrive.
我正在尝试访问该网站,但我得到的是"您无权查看此目录或页面. "信息.我曾经能够访问该网站.但是当我创建一个文件到 我的onedrive网站文件夹中,指出尽管删除了所有文件,但仍收到此错误消息,并将访问级别恢复为默认值.
I am trying to access the site but i am getting "You do not have permission to view this directory or page." message. I was once able to access the site. But when I create one file into my onedrive site folder, post that I am getting this error message despite removing all files and restored the access level to default.
请帮忙吗?
推荐答案
您需要启用并查看详细错误.创建一个< customErrors>在"web.config"中的标签.配置文件 位于当前Web应用程序的根目录中,并设置为关闭".
You need to enable and see the detailed errors. Create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application and set to "Off".
例如:
<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
如果它是一个空白网站,没有web.config文件,您应该在wwwroot位置下创建一个.
此外,查看 中指定的子状态代码span> 网络 服务器日志 找出确切的根本原因.
Also, checkthe sub-status code as specified in theWeb Server Logs for getting to the exact root cause.
您可以还 为网站启用诊断日志记录 应用 ,看看是否有帮助.
You can alsoEnable diagnostics logging for web apps and see if it helps.
- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击 span> .
------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, clickhere.
这篇关于无法访问网络应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!