Server Error in '/' Application.

Value cannot be null.
Parameter name: tenants

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.ArgumentNullException: Value cannot be null.
Parameter name: tenants

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:


[ArgumentNullException: Value cannot be null.
Parameter name: tenants]
   VINspin.Web.Multitenancy.UrlTenantResolver.Resolve() in D:\a\1\s\Shared Components\.NET\VINspin.Web\Multitenancy\UrlTenantResolver.cs:27
   VINspin.Web.Context.DealersWebAppContext.get_Tenant() in D:\a\1\s\Shared Components\.NET\VINspin.Web\Context\DealersWebAppContext.cs:68
   VINspin.Web.Context.DealersWebAppContext.get_DealerDetailsAsJson() in D:\a\1\s\Shared Components\.NET\VINspin.Web\Context\DealersWebAppContext.cs:206
   VINspinDealersWeb.MvcApplication.Session_Start(Object sender, EventArgs e) in D:\a\1\s\Products\DealersWeb\VINspinDealersWeb\Global.asax.cs:74
   Microsoft.AspNet.SessionState.SessionStateModuleAsync.RaiseOnStart(EventArgs e) +24
   Microsoft.AspNet.SessionState.<CompleteAcquireStateAsync>d__71.MoveNext() +388
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +139
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   Microsoft.AspNet.SessionState.<AcquireStateAsync>d__65.MoveNext() +1089
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +139
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   Microsoft.AspNet.SessionState.TaskAsyncHelper.EndTask(IAsyncResult ar) +63
   Microsoft.AspNet.SessionState.SessionStateModuleAsync.EndAcquireState(IAsyncResult result) +12
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +483
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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