Error Met when Debug
Hi, can anyone solve this error? I have been stuck at it for days.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mamta MRank #268 · 9.4K reputationPosted Dec 27, 2010, 6:46 PM EST
Becky Bloomwood110 reputationPosted Dec 27, 2010, 8:46 PM EST
System;using
using com.vrm.com;
namespace StarTrack
{
public partial class administrativeMasterPage : System.Web.UI.MasterPage
{
private string welcomeMessage = "Welcome ";
protected void Page_Load(object sender, EventArgs e)
{
////authenticate user
if (ADAuthentication.isAuthenticated())
{
lblWelcomeMsg.Text = welcomeMessage + SessionHandler.UserName;
lblWelcomeMsg.CssClass = "aspLabel02";
}
else
{
//Redirect to Error Page
Context.Items["Message"] = generalconstant.ERR_NOTAUTHENTICATED;
Server.Transfer("error.aspx");
}
}
}
}
When I debug it it states:System.NullReferenceException: Object reference not set to an instance of an object.