0
bobtabor created
Hi, trying to get ABP up and running for the first time.
Issue in the Web project.
\Controllers\LayoutController.cs
Line 41
The CurrentLanguage property is null and that line throws an exception.
'((Abp.Localization.LocalizationManager)LocalizationManager).CurrentLanguage' threw an exception of type 'Abp.AbpException'
The prior line (line 40) attempts to set:
headerModel.Languages = LocalizationManager.GetAllLanguages();
... but Languages.Count = 0
What I've done so far:
I literally just edited web.config pointing the Default connection string to a valid, new Azure SQL Database. Then I ran the app and hit this exception.
LocalizationManager has 4 _sources: Abp, WbpWeb, AbpZero & MyAppName - Abp.Localization.MultiTenantLocalizationSource
Here's the stack:
at Abp.Localization.LanguageManager.GetCurrentLanguage() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\LanguageManager.cs:line 29
at Abp.Localization.LanguageManager.get_CurrentLanguage() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\LanguageManager.cs:line 10
at Abp.Localization.LocalizationManager.get_CurrentLanguage() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\LocalizationManager.cs:line 21
at BeastMuffin.Web.Controllers.LayoutController.Header(String currentPageName) in C:\BeastMuffin\BeastMuffin.Web\Controllers\LayoutController.cs:line 41
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.ActionInvocation.InvokeSynchronousActionMethod()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()