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 67:         Dim ListaVARIANTI_Temp As New List(Of myVARIANTI)
Line 68:         Dim VARIANTI_DM As New myVARIANTI_DM
Line 69:         Dim Predicato As System.Func(Of myVARIANTI, Boolean) = Function(TAB) TAB.FamigliaSupporto.ToLower = Famiglia.ToLower And TAB.IDTipoSupporto = IDTipoSupporto
Line 70:         ListaVARIANTI_Temp = VARIANTI_DM.CaricaConFiltro(Predicato)
Line 71: 

Source File: D:\Inetpub\Clienti_Tecnoruote\App_Code\CreaHtml.vb    Line: 69

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Closure$__1._Lambda$__2(myVARIANTI TAB) in D:\Inetpub\Clienti_Tecnoruote\App_Code\CreaHtml.vb:69
   System.Linq.WhereEnumerableIterator`1.MoveNext() +125
   myVARIANTI_DM.CaricaConFiltro(Func`2 Predicate) in D:\Inetpub\Clienti_Tecnoruote\App_Code\myVARIANTI_DM.vb:84
   CreaHtml.CreaTabellaVarianti(String Famiglia, Int32 IDTipoSupporto, String Lingua, String SUPPORTI_Nome_IT, String IDRuota, String IDSup) in D:\Inetpub\Clienti_Tecnoruote\App_Code\CreaHtml.vb:70
   Dettagli.Page_Load(Object sender, EventArgs e) in D:\Inetpub\Clienti_Tecnoruote\Dettagli.aspx.vb:204
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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