Environment.
Develop : VisualStudio2012 MVC4 .NetFrameWrok4.5
Server : WindowsServer2008 R2 iis 7.5
If i failed log in. I call -> return RedirectToAction("LoginError", "Search");
It is working successfully when i debug on VisualStudio.
But, It is return error page on server.
This is error message.
Server Error in '/' Application Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Stack Trace:
[InvalidOperationException:
System.Web.Mvc.RedirectToRouteResult.ExecuteResult(ControllerContext context) +479
System.Web.Mvc.<>c__DisplayClass1a.b__17() +33 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +613
1 filters, ActionResult actionResult) +263
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
System.Web.Mvc.Async.<>c__DisplayClass25.b__22(IAsyncResult asyncResult) +230
System.Web.Mvc.<>c__DisplayClass1d.b__18(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +20 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +20
System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +20
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371
I found this. RedirectToAction Causes "No route in the route table matches the supplied values" in ASP.NET MVC 3
return RedirectToAction("ActionName", "ControllerName", new { area = "AreaName" });
But I can't understand mean of new { area = "AreaName" }
.
I didn't know what is this.
please teach me about this if you know. Thank you.