Scott
Scott

Reputation: 2760

404 - File or directory (a web.config file) not found - BUT FILE IS THERE

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?

Upvotes: 1

Views: 583

Answers (2)

chuck
chuck

Reputation: 1

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

Upvotes: 0

Lance
Lance

Reputation: 3932

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

Upvotes: 2

Related Questions