Server Error in '/' Application.

Using the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).

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.InvalidOperationException: Using the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).

Source Error:


Line 38:             head.Controls.Add(hm2)
Line 39:         ElseIf Request.QueryString("SID") = "PN" Then
Line 40:             Me.Title = "Pre-Lien Notices, Prelim, Preliminary Notice of Lien, Preliminary Notice, Intent to Lien letter"
Line 41:             Dim hm As New HtmlMeta()
Line 42:             hm.Name = "description"

Source File: C:\inetpub\newroot\EasyLaw\wwwroot\ServiceDetail.aspx.vb    Line: 40

Stack Trace:


[InvalidOperationException: Using the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).]
   System.Web.UI.Page.set_Title(String value) +11694767
   _ServiceDetail.Page_Load(Object sender, EventArgs e) in C:\inetpub\newroot\EasyLaw\wwwroot\ServiceDetail.aspx.vb:40
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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