Hi
Error: Redirect URI cannot contain newline characters
protected void Application_Error(object sender, EventArgs e)
{
Exception exception = Server.GetLastError();
if (exception != null)
{
HttpException httpException = null;
if (exception is HttpException)
{
httpException = exception as HttpException;
}
Response.Clear();
Server.ClearError();
Response.Redirect(String.Format("~/Error/Index/?message={0}", exception.Message));
}
}
Thanks