"Leon Mayne" <le**@rmvme.mvps.orgwrote in message
news:FA**********************************@microsof t.com...
"Tem" <te*****@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I've been stuck on this error for days.
I use global.asax to do url rewrite. which works fine on one server but
not the other. they are both windows server 2003 R2 IIS6.
if I do
http://test.com/photo/123
which would rewrite to http://test.com/photo/default.aspx?photo=123
on the server that doesn't work, it gives me a 404 error
but if I go and create a 123 folder under photo and a blank default.aspx,
it would work and display the correct page.
so this means global.asax is not being triggered
There must be a setting somewhere
Please help
Make sure the folder the global.asax is sitting in is configured as an
application in IIS, and that there is a web.config in the folder with it.
Check IIS Configuration settings and check that IIS isn't checking for
existence of the page!!!!
I don't know how to do for a page without extension like yours, but if you
map something like "123.do" and check the extension ".do" configuration in
IIS -Properties -Applcation Configuration -mappings ... you'll find a
checkbox "Check that file exists" in your ".do" mapping configuration.
HTH
--
Gianluca Gravina
http://blogs.ugidotnet.org/thinkingingrava