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:


[No relevant source lines]

Source File: C:\Sites\PortaleInternet2013\CustomBO\Services\Istat.svc.cs    Line: 67

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SitefinityWebApp.CustomBO.Services.Istat.GetComuniByRegione(String regione) in C:\Sites\PortaleInternet2013\CustomBO\Services\Istat.svc.cs:67
   SitefinityWebApp.CustomBO.Code.DocumentJSONUtil.ComunicatiStampaByRegione(String Regione) in C:\Sites\PortaleInternet2013\CustomBO\Code\DocumentJSONUtil.cs:19
   SitefinityWebApp.CustomBO.WidgetsTemplate.ComunicatiStampa.ComunicatiPerRegione.OnLoad(EventArgs e) in C:\Sites\PortaleInternet2013\CustomBO\WidgetsTemplate\ComunicatiStampa\ComunicatiPerRegione.cs:42
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +11726360
   System.Web.UI.Control.EnsureChildControls() +106
   System.Web.UI.Control.PreRenderRecursiveInternal() +57
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3670


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