Server Error in '/' Application.

Object reference not set to an instance of an object.

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: Object reference not set to an instance of an object.

Source Error:


Line 28:         TheGuild = Federations.Load(guildid);
Line 29:         Page.MasterPageFile = "~/MasterPages/0/2021.master";
Line 30:         Page.Title = TheGuild.GuildName + " | The Townswomen's Guilds ";
Line 31:         Page.MetaDescription = "Information on the " + TheGuild.GuildName + " Townswomen's Guild. This page contains information on the guild, how to contact them and latest news and comments from the Guild.";
Line 32:         Page.MetaKeywords = TheGuild.GuildName + ", Townswomen's Guild, events, local, help, chairty, things to do";

Source File: c:\IIS\WWW\tg2021.nexustestdomain.co.uk\TGFederation.aspx.cs    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   TGFederation.Page_PreInit(Object sender, EventArgs e) in c:\IIS\WWW\tg2021.nexustestdomain.co.uk\TGFederation.aspx.cs:30
   System.Web.UI.Page.OnPreInit(EventArgs e) +11859595
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1109


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