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 164:        Dim sTaal As String = Request.QueryString("lng")
Line 165:        Dim oPage As clsPage = clsPageDA.getItemById(Request.QueryString("id"))
Line 166:        If oPage.ID = 202 Then
Line 167:            oPage = clsPageDA.getItemById(6)
Line 168:            iId = 6

Source File: D:\Websites\www.khprotector.be\http\MasterPage.master.vb    Line: 166

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MasterPage.Talen() in D:\Websites\www.khprotector.be\http\MasterPage.master.vb:166
   MasterPage.Page_Load(Object sender, EventArgs e) in D:\Websites\www.khprotector.be\http\MasterPage.master.vb:146
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Version Information: Microsoft .NET Framework Version:2.0.50727.8810; ASP.NET Version:2.0.50727.8745