BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
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?
public class HomeController : Controller { public ActionResult Index() { return View(); // This will search for view page (index.cshtml) under the Home folder in Views section to load in a browser, if this file is missed then the issue will arise as you reported |