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.]
   CalGoldWeb.BusinessManagers.FlyweightFactoryBase`3.InitCache() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\BusinessManagers\FlyweightFactoryBase.cs:202
   CalGoldWeb.BusinessManagers.FlyweightFactoryBase`3..ctor() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\BusinessManagers\FlyweightFactoryBase.cs:24
   CalGoldWeb.BusinessManagers.BusinessTypeManager..ctor() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\BusinessManagers\BusinessTypeManager.cs:11

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +233
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +75
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1093
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +212
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +21
   System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +660
   CalGoldWeb.Common.SingletonFactory.GetInstance() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\Common\SingletonBase.cs:44
   CalGoldWeb.Common.SingletonFactory..cctor() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\Common\SingletonBase.cs:34

[TypeInitializationException: The type initializer for 'SingletonFactory' threw an exception.]
   CalGoldWeb.Common.SingletonBase`1.get_Instance() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\Common\SingletonBase.cs:19
   CalGoldWeb.Results.BindDropDowns() in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\Results.aspx.cs:45
   CalGoldWeb.Results.Page_Load(Object sender, EventArgs e) in D:\workspace\calenterprise\AzureApps\GoBiz.CalGold.Website.Database\CalGoldWeb\Results.aspx.cs:28
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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