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 195:        if (item.content != "")
Line 196:        {
Line 197:            if (item.description.Length > 130)
Line 198:                item.description = item.content.Substring(0, 130);
Line 199:

Source File: c:\inetpub\vhosts\friendshipstores.com\httpdocs\App_Controls\EventControl.ascx.cs    Line: 197

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   App_Controls_EventControl.LoadMetaInformation(Event item) in c:\inetpub\vhosts\friendshipstores.com\httpdocs\App_Controls\EventControl.ascx.cs:197
   App_Controls_EventControl.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\friendshipstores.com\httpdocs\App_Controls\EventControl.ascx.cs:132
   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.Control.LoadRecursive() +134
   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