gpt4 book ai didi

c# - 随机 HTTP 错误 403.14 - 禁止访问

转载 作者:行者123 更新时间:2023-11-30 20:55:31 25 4
gpt4 key购买 nike

<分区>

在编写 ASP.NET MVC 网站时随机出现 HTTP 错误 403.14 - 禁止错误,当转到特定页面(“/Views/Default/Index.cshtml”)时,我得到

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Views/Default/Index.cshtml

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

我猜这意味着至少正在加载 ASP.NET,但为什么它不能识别该页面?我在网上尝试了很多推荐,甚至从 IIS Express 中删除条目,然后通过 VS 重新添加它,将 web.config 从工作站点复制到它等等。似乎没有任何效果 - 而且它是只有这个网站。如果我将 directoryBrowse 设置为 true,我可以获得根目录中所有页面和目录的列表。我可以访问任何目录 except/Views/,它会抛出与上述相同的 Resource cannot be found 错误。我还在/Views/中的 Web.config 中添加了 directoryBrowse as true,但无济于事。

运行推荐 @ http error 403.14- forbidden返回:

Microsoft (R) ASP.NET RegIIS version 4.0.30319.32559 Administration utility to install and uninstall ASP.NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Start installing ASP.NET (4.0.30319.32559). This option is not supported on this version of the operating system. Administr ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win dows Features On/Off" dialog, the Server Manager management tool, or the dism.e xe command line tool. For more details please see http://go.microsoft.com/fwlin k/?LinkID=216771. Finished installing ASP.NET (4.0.30319.32559).

我在带有 Visual Studio 2013 预览版的 Windows 8 上,从大约一个小时前开始,它一直在工作,它随机开始发生。我有一个 Global.asax 文件,一切似乎都是正确的(尽管显然有问题)。我已经将最新 checkin 到一个新文件夹并从那里运行,同样的问题。这只是一个站点,一个在两个小时前还运行良好的站点。我唯一能想到的是,发生这种情况时我正在编辑路线,但我已经将路线改回原来的样子,但我遇到了同样的问题。

我完全不知道发生了什么,任何人都可以提供任何指导吗?我愿意尝试/做/测试你需要的任何东西,我只是想弄清楚发生了什么。非常感谢,希望有人能弄清楚发生了什么(很抱歉缺少关于我测试过的内容的信息——实际上是我在过去一个半小时的搜索中看到的所有内容)。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com