Error Met when Debug
Hi, can anyone solve this error? I have been stuck at it for days.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Becky BloomwoodPosted Dec 28, 2010, 1:46 AM
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.
Mamta MPosted Dec 27, 2010, 11:46 PM