I have this url that works fine on my VS web server
http://localhost:4454/cms/account/edituser/ email@domain.com (works)
but when I publish this site in IIS7.5, it just produces 404.
http://dev.test.com/cms/account/edituser/ email@domian.com (does not work)
but strange things happen if I delete the email address
http://dev.test.com/cms/account/edituser/email (works , no 404)
but if I change my url with the query string it works fine
http://dev.test.com/cms/account/ edituser?id=email@domain.com (works)
here is my route record
routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional }, // Parameter defaults new[] { "App.NameSpace.Web.Controllers" } );
The strange thing I noticed is that when the server issues a 404 error page, this iis 404 standards page is not the one I have.
so I was wondering if there are any problems with my route mapping or IIS doesn't like the url that has the email address as a parameter. but everything works fine with my local developer.
thanks
source share