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 2935:		{
Line 2936:			ThemeBiz biz = new ThemeBiz();
Line 2937:			Support.AddToCache(cacheKey, biz.GetSingle(permalink, Support.GetLocale()).ToUI(), LongCacheTime);
Line 2938:		}
Line 2939:

Source File: C:\www\viaggiaresumisura\_demo\vivitravels\App_Code\SiteSupport.cs    Line: 2937

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   VIVI.UI.Mappers.ThemeMapper.ToUI(Theme orig) +95
   SiteSupport.GetTheme(String permalink) in C:\www\viaggiaresumisura\_demo\vivitravels\App_Code\SiteSupport.cs:2937
   ASP._Page_templates_travel_list_cshtml.Execute() in C:\www\viaggiaresumisura\_demo\vivitravels\templates\travel\list.cshtml:76
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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