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 143:
Line 144:    Public Function GetTypeCss() As String
Line 145:        If Current.Session("TypeCss") Is Nothing OrElse Current.Session("TypeCss").ToString = String.Empty Then
Line 146:            Dim sSelect As String = "SELECT TYPE_CSS FROM CONFIG"
Line 147:

Source File: D:\inetpub\webs\dolcicoseit\App_Code\Configurazione.vb    Line: 145

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Configurazione.GetTypeCss() in D:\inetpub\webs\dolcicoseit\App_Code\Configurazione.vb:145
   ASP.global_asax.Application_Start(Object sender, EventArgs e) in D:\inetpub\webs\dolcicoseit\global.asax:9


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974