Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Problem when running Web Application #661


User avatar
0
owen84 created

Hello,

Im using aspnetboilerplate with module zero.

When i run the application i get the following exception on base.Application_Start(sender, e); in Application_Start on the Web application.

Exception Message - {"There are more than one source with name: Zygo! Source name must be unique!"}

Inner exception is null

Stack Trace:

at Abp.Localization.LocalizationManager.InitializeSources() at Abp.AbpKernelModule.PostInitialize() at Abp.Modules.AbpModuleManager.<InitializeModules>b__2(AbpModuleInfo module) at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.Modules.AbpModuleManager.InitializeModules() at Abp.AbpBootstrapper.Initialize() at Abp.Web.AbpWebApplication.Application_Start(Object sender, EventArgs e) at Zygo.Web.MvcApplication.Application_Start(Object sender, EventArgs e) in C:\git\Zygo\Zygo.Web\Global.asax.cs:line 13

This does not occur when running tests or when building the application but only on runtime. I think its related to dependency injection.

I've already tried downloading a fresh code base and re adding all my code. Can someone please help me out?


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    As error says, you may have more than one localization source for 'Zygo'. Maybe there is one in web project and other one in the core project. Since test project does not use web, it will work in this case.

  • User Avatar
    0
    owen84 created

    Yes i do have a folder for localization in both core and web projects. I tried deleting the localization folder in the web project but the problem still persists.

  • User Avatar
    0
    owen84 created

    issue resolved, i found where it was registered and changed the constant name - Configuration.Localization.Sources.Add

    Very nice work with the project. Im really enjoying working with it.