Server Error in '/' Application.

String cannot be of zero length.
Parameter name: oldValue

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: String cannot be of zero length.
Parameter name: oldValue

Source Error:


Line 33: 
Line 34: 				CMSNews itemRecord = new CMSNews(conn, language, itemId);
Line 35: 				pagePath.Text = itemRecord.GetHtmlSitePath(language, pageId, itemId).Replace(itemRecord.GetField("news_title"), CMSUtils.FDate(itemRecord.GetField("news_date"), language));
Line 36: 			}
Line 37: 			else if (Request.ServerVariables["SCRIPT_NAME"].ToLower()=="/monitoring_discontinuous.aspx") {

Source File: d:\inetpub\vhosts\mondocol-6034.package\colari.it\wwwroot\UserControls\boxes\path.ascx    Line: 35

Stack Trace:


[ArgumentException: String cannot be of zero length.
Parameter name: oldValue]
   System.String.ReplaceInternal(String oldValue, String newValue) +0
   System.String.Replace(String oldValue, String newValue) +15
   ASP.usercontrols_boxes_path_ascx.Page_Load(Object s, EventArgs e) in d:\inetpub\vhosts\mondocol-6034.package\colari.it\wwwroot\UserControls\boxes\path.ascx:35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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