Server Error in '/' Application.

Riferimento a un oggetto non impostato su un'istanza di oggetto.

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.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.

Source Error:


Line 46:         if (cUrl.IndexOf("tariffe/Default.aspx") > 0)
Line 47:         {
Line 48:             ((HtmlGenericControl)this.FindControl("linktariffe")).Attributes.CssStyle.Clear();
Line 49:             ((HtmlGenericControl)this.FindControl("linktariffe")).Attributes.Add("class", "activelink");
Line 50:         }

Source File: d:\inetpub\wwwroot\Domini\Kursaaldianomarina.com\www\Master\MasterPage.master.cs    Line: 48

Stack Trace:


[NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.]
   Master_MasterPage.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\Domini\Kursaaldianomarina.com\www\Master\MasterPage.master.cs:48
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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