Server Error in '/TMCompact' 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 275:    Private Sub SetHostId()
Line 276:        Dim Newsletter As New TMNewsletter.Newsletter
Line 277:        Newsletter.Load(_survey.NewsletterId)
Line 278:        _newsletterId = _survey.NewsletterId
Line 279:        _hostId = Newsletter.HostId

Source File: D:\tmapps\web\tmcompact\SurveyCustomView.aspx.vb    Line: 277

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SurveyCustomView.SetHostId() in D:\tmapps\web\tmcompact\SurveyCustomView.aspx.vb:277
   SurveyCustomView.GetSurvey() in D:\tmapps\web\tmcompact\SurveyCustomView.aspx.vb:266
   SurveyCustomView.LoadData() in D:\tmapps\web\tmcompact\SurveyCustomView.aspx.vb:993
   SurveyCustomView.Page_PreLoad(Object sender, EventArgs e) in D:\tmapps\web\tmcompact\SurveyCustomView.aspx.vb:1305
   System.Web.UI.Page.OnPreLoad(EventArgs e) +121
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +605


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