Server Error in '/' Application.

Redirect URI cannot contain newline characters.

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.

Exception Details: System.ArgumentException: Redirect URI cannot contain newline characters.

Source Error:


Line 237:                        string headlines = objDUT.replaceSinglecode(dt.Rows[0]["album_headline"].ToString());
Line 238:                        headlines = headlines.Replace("&", " ").Replace(".", " ").Replace("?", " ").Replace(":", " ").Replace("/", " ").Replace(" ", "-");
Line 239:                        Response.Redirect("http://gallery.punjabkesari.in/gallery/" + headlines + "_" + album_id + "#preet1");
Line 240:                    }
Line 241:                    else

Source File: c:\WEBSITES\DESKTOP\bollywoodtadka2015\Global.asax    Line: 239

Stack Trace:


[ArgumentException: Redirect URI cannot contain newline characters.]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +11922072
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\WEBSITES\DESKTOP\bollywoodtadka2015\Global.asax:239
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0