What are the ASP.NET MVC ways?

I added a route to my asp.net mpc app to handle some json requests I need to make. This works fine on my development machine, however when I installed QA the route doesn't work at all. I tried to physically enter the address and get a "bad request". Can anyone help with this? I restarted IIS to try and clear the cache, but still no luck. The first time I saw this, as I used to make several changes to the routes.

routes.MapRoute(
            "FsrProblemTypesByEquipment",
            "Fsr/ProblemTypesByEquipment/{equipmentID}",
            new {controller = "Fsr", action = "ProblemTypesByEquipment", equipmentID = ""});

      

+2


source to share


1 answer


Are you still getting a "bad request" if you grab a new route entry but use the same test url? If this is indeed a problem with your routing table, then your full route should be queried.

I am assuming that the request never makes it to your routing table; IIS catches the request before it is passed to your application. If so, it is a configuration issue in IIS, or IIS is unhappy with the URL construction for some reason.



View this forum post for more information:

http://forums.asp.net/p/1458130/3343674.aspx

0


source







All Articles