Server Error in '/' Application.

You can only have one <title> element within the <head> element.

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.Web.HttpException: You can only have one <title> element within the <head> element.

Source Error:


Line 90:                             HtmlTitle htmlTitle = new HtmlTitle();
Line 91:                             htmlTitle.Text = title.Trim();
Line 92:                             Header.Controls.AddAt(1, htmlTitle);
Line 93: 
Line 94:                             //Add Description to Meta tag

Source File: c:\inetpub\www.amada-mexico.com\Default.aspx.cs    Line: 92

Stack Trace:


[HttpException (0x80004005): You can only have one <title> element within the <head> element.]
   System.Web.UI.HtmlControls.HtmlHead.AddedControl(Control control, Int32 index) +11839818
   _Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\www.amada-mexico.com\Default.aspx.cs:92
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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