I use "/Controller/ActionName" url format for my ajax calls. This pattern works fine with my development server that has this pattern
/Controller/ActionName
My application has been deployed to IIS with the following url pattern
/domain/Controller/ActionName
So whenever I call a resource it routes to /Controller/ActionName instead of /domain/Controller/ActionName there by resulting in 404 error. Is there any quick fix for this by modifying the routeconfiguration such that it works on both the devl as well as the IIS.
Urlhelper as inUrl.Action("Action", "Controller")it should take care of generating the right paths for you.~points to, and rewrite the path in javascript code. Something like"~/Controller/Action".replace("~", globalPath)