I am trying to debug Sitecore MVC4 application. Overall it works fine, but for some reason i am unable to stop in the default Action. I am able to break in the .cshtml file. I am also able to break in the [HttpPost] Action Is it something specific to Sitecore. I developped stand alone MVC apps before, but never had this issue
public ViewResult Login()
{
[DEBUGGER DOES NOT STOP HERE ] return View();
}
[HttpPost]
public ActionResult Login(CurrentSession currentSession, LoginViewModel model)
{
if (ModelState.IsValid)
{
.......
[DEBUGGER STOPS HERE]model.LoggedIn = currentSession.LoggedIn;
.......
}
}
I am trying to do some logic in the default action, but it looks like Sitecore does not see it. Could be some set up in the sitecore ? In my Rendering Item i set value for "Path" pointing to my Login.cshtml. Also set "Form Controller Name" = "Account" and set "Form Controller Action" = Login. Am i missing something? It is like Sitecore does not know there is an action perform "OnLoad" event