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 25: 
Line 26:             if (!p.isvalid)
Line 27:                 p = new netapplicationpro.productpage(arg);
Line 28: 
Line 29:             if (!p.isvalid)

Source File: d:\inetpub\wwwroot\poolheating\Global.asax    Line: 27

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   netapplicationpro.db.product_get(String urlname, Int32 lang_id) in C:\Users\Stuart\Documents\Visual Studio 2008\Projects\netapplicationpro2\netapplicationpro2\db.cs:1949
   netapplicationpro.productpage..ctor(String args) in C:\Users\Stuart\Documents\Visual Studio 2008\Projects\netapplicationpro2\netapplicationpro2\productpage.cs:97
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\inetpub\wwwroot\poolheating\Global.asax:27
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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