Localization and strong names - fallback not working?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Freek Versteijn (Versteijn_at_discussions.microsoft.com)
Date: 12/20/04


Date: Mon, 20 Dec 2004 07:19:06 -0800

Dear all,

I have developed an ASP.NET application which uses localization. One of my
shared assemblies needs localized resources. So I created satellite
assemblies with resources for it. I also added a AssemblyKeyFileAttribute.

The main thing is: I get an IoException when starting the app, that ASP.NET
could not find the resources assembly for the current culture. The file is my
fallback resources file (i.e. it's in my bin folder), but the framework does
not seem to be searching that folder. Here is the LOG:

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/MyApp/9f4dac8a/49f02a07/nl-NL/MyApp.Exceptions.resources.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/MyApp/9f4dac8a/49f02a07/nl-NL/MyApp.Exceptions.resources/MyApp.Exceptions.resources.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/MyApp/bin/nl-NL/MyApp.Exceptions.resources.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/MyApp/bin/nl-NL/MyApp.Exceptions.resources/MyApp.Exceptions.resources.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/MyApp/9f4dac8a/49f02a07/nl-NL/MyApp.Exceptions.resources.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/MyApp/9f4dac8a/49f02a07/nl-NL/MyApp.Exceptions.resources/MyApp.Exceptions.resources.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/MyApp/bin/nl-NL/MyApp.Exceptions.resources.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/MyApp/bin/nl-NL/MyApp.Exceptions.resources/MyApp.Exceptions.resources.EXE.

Note that I have not registered any assemblies in the GAC yet. Just wanted
to test it through my application folder first. When I place the resources
file in the nl-NL folder, it seems to work. But that's not what I want.

Any clues?

Thank so in advance.

Kind regards,

Freek Versteijn



Relevant Pages

  • Re: Assembly could not be loaded???
    ... Attempting download of new URL ... > How ever my web application <BIN> folder and the ... > redirected any assemblies either. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Assembly could not be loaded???
    ... No redirect found in host configuration file ... Attempting download of new URL ... folder both contains the same assembly but ... redirected any assemblies either. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: App Domain
    ... > It's possible to load into app domain assemblies from two different ... The config file allows you to load a specific version of an assembly ... design of .NET is to have private assemblies in the application folder ... Loading from a remote site means that you download the assembly once - ...
    (microsoft.public.dotnet.framework)
  • Re: Assembly conversion to Pocket Pc format
    ... string strfilename = ... for .NET assemblies, i.e. it is simply passing them through unmodified. ... rather I want to download from HTTP or HTTPS. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Intermittent MissingFieldException
    ... Microsoft Online Support ... |> asp.net application's private bin path. ... |> for those assemblies. ... |> | Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)