Re: Failed to load resources from resource file, please check your setup

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sarah Woodfield wrote:
> I have written an application in VB.Net which runs well on my
> development PC. However on a few clients machines, at apparently
> random intervals, they get the above message and the programme
> crashes out. The error isn't occurring during set-up, but during use
> of the programme. I am having trouble trapping for this as I don't
> know what it means
> and therefore what might be causing it.
> As far as I know, I am not using any resource files (though that may
> be my lack of knowledge!!)

Do you have a stack trace, that is an idea of what class is throwing the
exception? Is ResourceManager in the stack?

You'll find the details of how resources are loaded in my Fusion
workshop, so I won't go into too many details here. Basically, if you
have localised resources then these will be stored in 'satellite
assemblies', however, they are not loaded like normal assemblies.
Instead, at runtime, the ResourceManager object tests the thread locale
and checks for a satellite assembly that has the culture of that locale.
It will look for the satellite in a subfolder with the name of the
culture. (For example en for English, en-GB for UK English, en-US for US
English). Note that satellite assemblies do not use the same versioning
mechanism as normal assemblies.

If ResourceManager cannot find the right satellite it will look for the
resource in the current assembly (the 'neutral' culture).

I suspect that you are using satellites, and have them installed, but
they are old versions that do not have the specific resource that is
being looked for.

Anyway, the stack trace will be useful.

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm


.



Relevant Pages

  • Re: Failed to load resources from resource file, please check your setup
    ... I don't have a stack trace as it isn't happening on ... > they are not loaded like normal assemblies. ... > ResourceManager object tests the thread locale and checks for a satellite ... > resource in the current assembly. ...
    (microsoft.public.dotnet.general)
  • Re: App wont start
    ... then you indicate that you are using satellite assemblies. ... The names of the subfolders are important. ... it is looking for it will 'fallback' to the neutral resource. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Using images on windows forms, stored in a dotnet assembly (dll).
    ... As for the .net resource files and satellite ... assemblies, they are pure resources containers which only contains resource ... in VS.NET we use .resx(assembly resource file) to manipulate ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: default resource file without culture information is performance hit?
    ... NeutralResourcesLanguageAttribute and compares it with CurrentUICulture. ... other places for the satellite assemblies in most situations. ... Microsoft Online Community Support ... the .net engine will first look for resource file matching current user's ...
    (microsoft.public.dotnet.framework)
  • Re: Using Images of Satellite Assemblies
    ... Ensure you follow all naming and location conventions for satellite ... assemblies. ... Also bear in mind that culture-neutral resources should remain in the main ... assembly as they are expected to be there by the resource fallback process. ...
    (microsoft.public.dotnet.languages.csharp)