Groups | Blog | Home
all groups > dotnet internationalization > february 2005 >

dotnet internationalization : strong named assembly doesn't find satellite assemblies


RainerI
2/22/2005 7:37:04 AM
Hello everybody

i have an assembly which uses satellite assemblies. The ResourceManager
finds the resources and everything works fine. But when i make this assembly
strong named by placing [assembly: AssemblyKeyFile(<path-to-Keyfile>)] in
AsseblyInfo.cs and recompile my solution the ResourceManager doesn't find any
satellite assemblies. When i remove the strong name everything works fine
again.

What i have already tried:
- placing the assembly in the GAC
- making all satellite assemblies strong named
- placing the satellite assemblies in the GAC, too
- verified that the satellite assemblies have the save version number as my
assemblie

Nothing worked. Has anybody an idea what else i could try?
marinm NO[at]SPAM online.microsoft.com
2/24/2005 7:28:40 PM
Hi Rainer, Did you sign your satellite assemblies with the same
public-private key pair? If the main assembly is signed, the satellite
assemblies must be signed with the same public-private key pair. If you
have already tried that, then you may be able to find loading errors by
checking the log in fuslogvw. Check Suzanne Cook's blog entry for more
information on how to debug loading failures.
http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx
Your version numbers should also be the same, however, you can update your
main assembly without updating your satellite assembly by setting the
satellitecontractversionattribute - see more info here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemresourcessatellitecontractversionattributeclasstopic.asp
Hope this helps,
Marin Millar [MSFT]
RainerI
2/25/2005 5:05:02 AM
Hi Marin. Signing the satellite assemblies and the main assembly with the
same private-public key pair and giving all assemblies the same version
number solved the problem.

Thanks a lot for your help.
AddThis Social Bookmark Button