404 - 找不到文件或目录(web.config文件) - 但文件是存在的

时间:2022-07-30 11:26:47

I enter my url and it shows the directory structure. There are some folders, which I can navigate to just fine, plus a Web.config file. I click the link and get the 404 error. The same thing happens for my Global.asax file. Why can't my file be found?

我输入我的网址,它显示了目录结构。有一些文件夹,我可以导航到很好,加上一个Web.config文件。我单击该链接并获得404错误。我的Global.asax文件也发生了同样的事情。为什么我的文件找不到?

2 个解决方案

#1


You can't open them for security reasons. You're not supposed to be able to open them in a browser.

出于安全原因,您无法打开它们。您不应该能够在浏览器中打开它们。

#2


It seems you use ASP.NET framework. IIS forbid the “http access” to these files.

看来你使用的是ASP.NET框架。 IIS禁止对这些文件进行“http访问”。

#1


You can't open them for security reasons. You're not supposed to be able to open them in a browser.

出于安全原因,您无法打开它们。您不应该能够在浏览器中打开它们。

#2


It seems you use ASP.NET framework. IIS forbid the “http access” to these files.

看来你使用的是ASP.NET框架。 IIS禁止对这些文件进行“http访问”。