routes.MapRoute("RouteAccountNewAccount", GlobalData.accountRoute + "/NewAccount/{language}/{email}",
new
{
controller = GlobalData.AccountControllerName,
action = "NewAccount"
},
new
{
httpMethod = new HttpMethodConstraint("GET")
});
routes.MapRoute("RouteAccountNewAccountForInvalidEmail", GlobalData.accountRoute + "/NewAccountForInvalidEmail/{language}",
new
{
controller = GlobalData.AccountControllerName,
action = "NewAccountForInvalidEmail"
},
new
{
httpMethod = new HttpMethodConstraint("GET")
});
In Account controller:-
public ActionResult NewAccountForInvalidEmail(AccountViewModel model, string language)
{
........
return View("NewAccount");
}
public ActionResult NewAccount(AccountViewModel model, string language, string email)
{
.......
return Json(response, JsonRequestBehavior.AllowGet);
}
It is working fine in development environment. But when we moved the same code to prod, we are facing an error as like"index.cshtml is not found".
Could you please let me know whether the order of routing in global.asax file is creating the problem?