When do you get 404, when does the page really exist?

I have an aspx page with a simple datagrid databag on it; some users get the page just fine. Others get 404s. If something is wrong with the page, can I get an asp.net error instead of 404?

+3
source share
3 answers

For security reasons, IIS6 can send 404 when in fact the result should be allowed or denied. Someone trying to gain malicious access will not be warned of the existence of a page on which they can focus.

I can’t remember whether this is the default configuration or whether to enable it.

+2

404? ( IIS ASP.Net?)

ASP.Net 404, ( ), 404 ( throw new HttpException)

? , .

+1

Do you have a global error handler doing redirection?

Is there something in the Global.asax or web.config file?

+1
source

Source: https://habr.com/ru/post/1710777/


All Articles