Hi
I have Index file in Shared folder. Controller Name is Error. Index file in Shared folder is Error.cshtml
What change i need to make in this line - Response.Redirect(string.Format("~/Error/Index/?message={1}", "", HttpUtility.UrlEncode(exception.Message)));
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={1}", "", HttpUtility.UrlEncode(exception.Message)));
}
}
Thanks