Interview Question in Asp.net 2.0


 

Interview Question :: Server error can somebody plz help

this is what happens

Server Error in '/rewards' 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 40: }
Line 41: //UpperDeck 2
Line 42: SectionTitle = String.Format(AppLogic.GetString("defaul...
Line 43: m_HomeTopic = new Topic("hometopintro",ThisCustomer.Locale...
Line 44: if(m_HomeTopic.ContentsBGColor.Length != 0)


Source File: e:\Websites\Kids_Rewards\default.aspx.cs Line: 42

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
AspDotNetStorefrontCommon.AppLogic.GetSt... key, Int32 SiteID, String LocaleSetting) +67
AspDotNetStorefront._default.Page_Load(O... sender, EventArgs e) in e:\Websites\Kids_Rewards\default.aspx.cs...
System.Web.Util.CalliHelper.EventArgFunc... fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegat... sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Bo... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------...
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
by ksk