Hi Joe,
As you mentioned that the rewriting for that nonexisting path used to work
on development machine, are you using the Visual Studio test server on dev
machine? If so , this is the expected behavior because Visual Studio test
server always intercept all requests to process by ASP.NET runtime.
However, in IIS hosting scenario, by default, it only forward those
requests with the registerred extensions(such as .aspx , .ascx , .asmx ...)
to ASP.NET runtime.
For the following kind of path:
Http://
www.mysite.com/UserName
it will not be forwarded to ASP.NET runtime and be processed by IIS
directlly. I think you can consider the following means to resolve the
problem:
1. You can consider set the default document for the certain IIS site or
virtual directory so that those directory path url request will be forward
to the default document page(you configured) and you'll be able to process
the request in ASP.NET runtime:
#Setting Up Default Documents (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d
c6eb1b4-9028-4308-9935-52b64edfad36.mspx?mfr=true
#A Complete URL Rewriting Solution for ASP.NET 2.0
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-
for-asp.net-2.0/
2. As other member suggested, you can also configure a custom 404 error
page(use your own ASPX page) in IIS:
#Creating a Custom 404 Error Page
http://www.4guysfromrolla.com/webtech/061499-1.shtml
http://www.4guysfromrolla.com/webtech/123000-1.shtml
thus, you can get handle of those 404 error for non-existing url request in
IIS.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------