Server Error in '/CampComo' Application.

Cannot initialize security because user (como.web) has not been allowed access to this company (416).

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: CircuiTree.Common.UserAuthentication+AuthenticationException: Cannot initialize security because user (como.web) has not been allowed access to this company (416).

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:


[AuthenticationException: Cannot initialize security because user (como.web) has not been allowed access to this company (416).]
   CircuiTree.Common.DatabasePortal.Initialize(UserAuthentication userAuth, Int32 companyID, Boolean isMultiTenant, Boolean onlyInitializeCircuiTreeDB, Boolean loginToInactiveCompany) +172
   CircuiTree.Common.DatabasePortal.Initialize(UserAuthentication userAuth, Int32 companyID, Boolean isMultiTenant) +15
   CircuiTree.Web.Global_asax.InitializeDB() +169
   CircuiTree.Web.Global_asax.Application_Start(Object sender, EventArgs e) +137

[HttpException (0x80004005): Cannot initialize security because user (como.web) has not been allowed access to this company (416).]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +399
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +183
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +162
   System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +54
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +170

[HttpException (0x80004005): Cannot initialize security because user (como.web) has not been allowed access to this company (416).]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +78
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +166


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