I got this error The redirect URI cannot contain newlines. when running this code below. I work MVC 4 . its my working code.
protected void Application_Error(Object sender, System.EventArgs e) { System.Web.HttpContext context = HttpContext.Current; System.Exception exception = Context.Server.GetLastError(); var stackTraceExcep = new StackTrace(exception, true);
What is the problem? How can we solve this? I already searched and tried Google and got answers to the stack overflow. but nothing helps me.
Now what am I doing?
My Controller Action Method
[HttpGet] public ActionResult App_Error(string errorMessage, string fileName, string lineNumber, string columnNumber, string methodName, string className) { string errorNumber = Convert.ToString(errorRepository.AddError(errorMessage, fileName, Convert.ToInt32(lineNumber), Convert.ToInt32(columnNumber), methodName, className)); ViewData["message"] = "An error has occurred in the application . The error number is : " + errorNumber; return View(); }
user2702326
source share