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 9:      int id = Convert.ToInt32(Request.QueryString["id"]);
Line 10:     pi = Tianv.BLL.tianv_pro.Select(id);
Line 11:     pp = Tianv.BLL.tianv_pro_type.Select(pi.typeid);
Line 12: 
Line 13:     if (pi != null)

Source File: e:\hostingspaces\logojets.com\logojets.com\wwwroot\product\product_info.aspx    Line: 11

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.product_product_info_aspx.OnLoad(EventArgs e) in e:\hostingspaces\logojets.com\logojets.com\wwwroot\product\product_info.aspx:11
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8964; ASP.NET Version:2.0.50727.8962