HighTechTalks DotNet Forums  

Strong Named Satellite Assemblies will not load

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Strong Named Satellite Assemblies will not load in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nico Cizik
 
Posts: n/a

Default Strong Named Satellite Assemblies will not load - 04-26-2006 , 06:13 PM






Hi,

I created a simple test application to try to learn various resource
deployment options. I have so far been successful using satellite
assemblies only when they are not strongly named. Ultimately I would like
to see them work in the GAC but for now I'm just trying to load them in my
standard directory structure. Below are the steps I am taking. (I feel
like I've read just about every thread on this topic).

1. Using VS2005, build my test application (ResourceTest.exe) with a strong
name key pair (resourcetest.snk). I have also assigned the
SatelliteContractVersionAttribute to 1.0.0.0.

2. Using al.exe, create my satellite assembly using the same key pair to
strongly name it as well. Here is the script I am using...

al /t:lib /embed:myResources.de.resources /culture:de
/Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0
/out:ResourceTest.resources.dll

The generated .dll file is now located in the .\de directory relative to my
main app .exe file.

3. Run the main application and try to change the culture however the
default resources file is used instead of the satellite assembly.

Note that this does work correctly if I do not strongly name either the main
app or the satellite assembly.

Any thoughts on where I could be going wrong?

--
Regards,

Nico Cizik
Digital Metaphors



Reply With Quote
  #2  
Old   
inpuarg
 
Posts: n/a

Default Re: Strong Named Satellite Assemblies will not load - 04-27-2006 , 02:04 AM






http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032280470&EventC ategory=5&culture=en-US&CountryCode=US

watch this video.



On Wed, 26 Apr 2006 17:13:11 -0600, "Nico Cizik" <support (AT) digital-metaphors (DOT) com>
wrote:

Quote:
Hi,

I created a simple test application to try to learn various resource
deployment options. I have so far been successful using satellite
assemblies only when they are not strongly named. Ultimately I would like
to see them work in the GAC but for now I'm just trying to load them in my
standard directory structure. Below are the steps I am taking. (I feel
like I've read just about every thread on this topic).

1. Using VS2005, build my test application (ResourceTest.exe) with a strong
name key pair (resourcetest.snk). I have also assigned the
SatelliteContractVersionAttribute to 1.0.0.0.

2. Using al.exe, create my satellite assembly using the same key pair to
strongly name it as well. Here is the script I am using...

al /t:lib /embed:myResources.de.resources /culture:de
/Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0
/out:ResourceTest.resources.dll

The generated .dll file is now located in the .\de directory relative to my
main app .exe file.

3. Run the main application and try to change the culture however the
default resources file is used instead of the satellite assembly.

Note that this does work correctly if I do not strongly name either the main
app or the satellite assembly.

Any thoughts on where I could be going wrong?


Reply With Quote
  #3  
Old   
Nico Cizik
 
Posts: n/a

Default Re: Strong Named Satellite Assemblies will not load - 04-27-2006 , 03:45 PM



Thanks, this was a very informative webcast, however it did not mention
anything about strong named satellite assemblies. I am already familiar
with strong naming concepts and everything I have read says that what I am
doing on my machine should work correctly. Has anyone had any issues like
this? I must be missing something somewhere.

--
Regards,

Nico Cizik
Digital Metaphors

"inpuarg" <inpuarg (AT) whereland (DOT) com> wrote

Quote:
http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032280470&EventC ategory=5&culture=en-US&CountryCode=US

watch this video.



On Wed, 26 Apr 2006 17:13:11 -0600, "Nico Cizik"
support (AT) digital-metaphors (DOT) com
wrote:

Hi,

I created a simple test application to try to learn various resource
deployment options. I have so far been successful using satellite
assemblies only when they are not strongly named. Ultimately I would like
to see them work in the GAC but for now I'm just trying to load them in my
standard directory structure. Below are the steps I am taking. (I feel
like I've read just about every thread on this topic).

1. Using VS2005, build my test application (ResourceTest.exe) with a
strong
name key pair (resourcetest.snk). I have also assigned the
SatelliteContractVersionAttribute to 1.0.0.0.

2. Using al.exe, create my satellite assembly using the same key pair to
strongly name it as well. Here is the script I am using...

al /t:lib /embed:myResources.de.resources /culture:de
/Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0
/out:ResourceTest.resources.dll

The generated .dll file is now located in the .\de directory relative to
my
main app .exe file.

3. Run the main application and try to change the culture however the
default resources file is used instead of the satellite assembly.

Note that this does work correctly if I do not strongly name either the
main
app or the satellite assembly.

Any thoughts on where I could be going wrong?




Reply With Quote
  #4  
Old   
Nico Cizik
 
Posts: n/a

Default Re: Strong Named Satellite Assemblies will not load - 04-27-2006 , 05:10 PM



I found the issue. My .resources files were not being named properly for my
strong named example. Embarrassing . Thanks again for your help.

--
Regards,

Nico Cizik
Digital Metaphors

"inpuarg" <inpuarg (AT) whereland (DOT) com> wrote

Quote:
http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032280470&EventC ategory=5&culture=en-US&CountryCode=US

watch this video.



On Wed, 26 Apr 2006 17:13:11 -0600, "Nico Cizik"
support (AT) digital-metaphors (DOT) com
wrote:

Hi,

I created a simple test application to try to learn various resource
deployment options. I have so far been successful using satellite
assemblies only when they are not strongly named. Ultimately I would like
to see them work in the GAC but for now I'm just trying to load them in my
standard directory structure. Below are the steps I am taking. (I feel
like I've read just about every thread on this topic).

1. Using VS2005, build my test application (ResourceTest.exe) with a
strong
name key pair (resourcetest.snk). I have also assigned the
SatelliteContractVersionAttribute to 1.0.0.0.

2. Using al.exe, create my satellite assembly using the same key pair to
strongly name it as well. Here is the script I am using...

al /t:lib /embed:myResources.de.resources /culture:de
/Keyf:..\..\..\resourcetest.snk" /template:..\ResourceTest.exe /v:1.0.0.0
/out:ResourceTest.resources.dll

The generated .dll file is now located in the .\de directory relative to
my
main app .exe file.

3. Run the main application and try to change the culture however the
default resources file is used instead of the satellite assembly.

Note that this does work correctly if I do not strongly name either the
main
app or the satellite assembly.

Any thoughts on where I could be going wrong?




Reply With Quote
  #5  
Old   
vivekg (Offline)
Junior Member
 
Posts: 1
Join Date: Jul 2006

Default Re: Strong Named Satellite Assemblies will not load - 07-20-2006 , 05:46 AM



I also doing almost same sample, where I do have two resource files namely
testlocal.en-au.resx and testlocal.en-us.resx,

I am using resourcenamanager to access resources for specific locale.

I created locale specific resources using resgen,
resgen name of the resx file alogn with path
this create resource file namely testlocale.en-us.resources.

Stored in Bin\En-Us folder and Another testlocale.en-au.resources as well in Bin\En-Au folder.

Linked the Resource File to Assembly using AL.exe

Using this AL create testlocale.resources.dll for both en-au and en-us.

ResourceManager resourcemanager = new ResourceManager("App_Web_hpmhurgy", Assembly.GetExecutingAssembly()); // Assembly.GetExecutingAssembly()

string str1 = resourcemanager.GetString("Name", new CultureInfo(str));
Response.Write(str1);

When I am accessing resourcemanager to getstring I am getting error --

MissingManifestResourceException", "Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Testlocalize.Testlocale.resources" was correctly embedded or linked into assembly "App_Web_0hslo_no" at compile time, or that all the satellite assemblies required are loadable and fully signed."

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.