question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Localization - Cannot find source....

See original GitHub issue

Hi,

  • Still trying to get things to compile here after converting from 0.3.2 to 0.4.0
  • I am currently getting the following exception
 Can not find a source with name: EnergyMission
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: Abp.AbpException: Can not find a source with name: EnergyMission

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:


[AbpException: Can not find a source with name: EnergyMission]
   Abp.Localization.LocalizationManager.GetSource(String name) +163
   EnergyMission.Web.Controllers.HomeController..ctor() +55

[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) +113
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.Activator.CreateInstance(Type type) +6
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +55

[InvalidOperationException: An error occurred when trying to create a controller of type 'EnergyMission.Web.Controllers.HomeController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +178
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +77
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +88
   MvcSiteMapProvider.DI.ControllerFactoryDecorator.CreateController(RequestContext requestContext, String controllerName) +104
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +191
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +50
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +301
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

As far as I can see I have all the correct resources in place? See image:

image

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
natikicommented, Nov 18, 2014

Hi @hikalkan,

Yes I did ultimately. There was a pathing issue as to where the localization files were. It ended up being an IO error. Might be an idea to include in the ABPException information about the full name and path of the files that were attempted to be be loaded.

0reactions
ismcagdascommented, Dec 16, 2018

@deepakkumarbarik if you see this error on browser console, first try to open the website on Google Chrome’s incognito mode. If not, please share the full stack trace.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find localization source: LeptonX #4875
I can't reproduce the problem (7.1.1). shouldn't it include the localization resource so it can find it inside resources for angular app? The ......
Read more >
"Could not find localization source: AbpWeb" #5998
First, try to clear browser cookies. If it doesn't work, there must be a file under App_Data/Logs/Logs.txt which containst the actual error ...
Read more >
Could not find localization source: AbpWeb #6630
Hi Team,. Above mentioned error is being displayed in browser console when i have deployed application to Azure but working as expected in...
Read more >
ABP: Rebuilding Localization Sources from Custom Provider
I built some custom localization providers. These providers get translation dictionaries from an external API. I add localization sources on ...
Read more >
Unable to build project for localization string extraction
In some files I'm using OBJC from UIKit, no problem, app compiles and works well; When exporting localizations, compiler aborts with "error: no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found