I've got an aspx page with a simple databound datagrid on it; some users get the page just fine. Others get 404s. If there was something wrong with the page, wouldn't I get an asp.net error, instead of a 404?
+1
A:
What kind of 404 is it? (Is it from IIS or from ASP .Net?)
If it's an ASP .Net 404, it's possible (but unlikely) that your code is throwing a fake 404 (search for throw new HttpException
)
Do you have a server cluster? If so, one server might have an out-of-date copy.
SLaks
2009-06-18 15:25:19
It's an HTTP404, and it's not a cluster. Single machine running Win Server 2003.
SnOrfus
2009-06-18 15:41:58
+1
A:
Do you have any global error handler performing a redirect?
Something in the Global.asax or web.config?
Robin Day
2009-06-18 15:25:35
Yes, I checked and I did have a default redirect to the generic error page that I was receiving.
SnOrfus
2009-06-18 15:47:14
+2
A:
For security reasons IIS6 can send 404 when in fact the result should be permission denied or forbidden. Someone trying to gain malicious access will not be alerted to the existance of a page that they may then concentrate efforts on.
I can't remember if this is default config or needs to be switched on.
AnthonyWJones
2009-06-18 15:27:18
It happens under these conditions- http://support.microsoft.com/Default.aspx?id=315122
RichardOD
2009-06-18 15:32:53