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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: Redirect URI cannot contain newline characters.]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +11928288
   System.Web.HttpResponseWrapper.RedirectPermanent(String url, Boolean endResponse) +27
   CMS.URLRewritingEngine.URLRewriter.RedirectPermanentInternal(String url, String siteName) +41
   CMS.URLRewritingEngine.URLRewriter.RedirectToMainUrl(PageInfo pageInfo, String originalQuery, UrlRewritingAction action, PreferredCultureOnDemand culture) +322
   CMS.URLRewritingEngine.URLRewriter.RedirectToMainUrl(SiteNameOnDemand siteName, PageInfo pageInfo, PageInfoSource pageInfoSource, String wildCardQueryString, String originalQuery, UrlRewritingAction action, PreferredCultureOnDemand culture) +748
   CMS.URLRewritingEngine.URLRewriter.RewriteUrl(String relativePath, ExcludedSystemEnum excludedEnum, SiteNameOnDemand siteName, ViewModeOnDemand viewMode) +8715
   CMS.URLRewritingEngine.URLRewriter.RewriteUrl(RequestStatusEnum status, String relativePath, ExcludedSystemEnum excludedEnum) +82
   CMS.URLRewritingEngine.URLRewritingHandlers.RewriteUrl(Object sender, EventArgs e) +61
   CMS.Base.AbstractHandler.CallEventHandler(EventHandler`1 h, TArgs e) +115
   CMS.Base.AbstractHandler.Raise(String partName, List`1 list, TArgs e, Boolean important) +989
   CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e) +145
   CMS.Base.SimpleHandler`2.StartEvent(TArgs e) +236
   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.4087.0