Wcf Web Api service routes conflicting with regular asp.net mvc routes (web api preview 4)
问题 I noticed that my mvc app is creating wrong url's when using: @using (Html.BeginForm("Test", "Test")) { <input type="submit" value="Submit" /> } This is the generated html source: <form action="/books?action=Test&controller=Test" method="post"> Notice that action starts with /books . This is WRONG! What I've noticed is that Html.BeginForm is always including the beginning of the first web api which has been registered with MapServiceRoute. (see code below) public static void RegisterRoutes