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 80:                 BtnAddCart.Visible= (itm.IsAvailable&&!itm.RitiroAlBanco);
Line 81:                 BtRitiroAlBanco.Visible = itm.RitiroAlBanco;
Line 82:                 FldLongDescription.InnerHtml = itm.Description.Replace("\n", "<br />");
Line 83:                
Line 84:                 itm.RegView();

Source File: c:\inetpub\wwwroot\le1000voglie.com\dettagli.aspx.cs    Line: 82

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   mvoglie.dettagli.LoadItem(String _idp) in c:\inetpub\wwwroot\le1000voglie.com\dettagli.aspx.cs:82
   mvoglie.dettagli.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\le1000voglie.com\dettagli.aspx.cs:43
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212