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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Microgame.Client.ServiceBusiness.MembershipManager.GetSiteByUrl(Uri SiteUrl) in D:\a\mg-vanern-cms\mg-vanern-cms\Dev\Source\Microgame.Client.ServiceBusiness\MembershipManager.cs:102
   CMSWebParts_Microgame_Games_VirtualBets_CartVirtualBets.OnContentLoaded() +320
   CMS.PortalControls.CMSWebPartZone.OnContentLoaded() +189
   CMS.PortalControls.CMSAbstractLayout.OnContentLoaded() +172
   CMS.PortalControls.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +313
   CMS.PortalControls.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +1054
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1862
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2548
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2548
   CMS.PortalControls.CMSPortalManager.LoadContent(Boolean reloadData) +2456
   CMS.PortalControls.CMSPortalManager.CMSPortalManager_Init(Object sender, EventArgs e) +471
   System.Web.UI.Control.OnInit(EventArgs e) +107
   System.Web.UI.Control.InitRecursive(Control namingContainer) +172
   System.Web.UI.Control.InitRecursive(Control namingContainer) +379
   System.Web.UI.Control.InitRecursive(Control namingContainer) +379
   System.Web.UI.Control.InitRecursive(Control namingContainer) +379
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +490


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