HighTechTalks DotNet Forums  

Loading/Loacting satelite assembly

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Loading/Loacting satelite assembly in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alexander Gurevich
 
Posts: n/a

Default Loading/Loacting satelite assembly - 08-31-2007 , 11:09 AM






Hi,

I stumbeled following problem
I have windows application with WindowsApplication1.en-US.resx
I ran:
Resgen WindowsApplication1.en-US.resx
WindowsApplication1.WindowsApplication1ResourceCla ss.resources
/str:C#,WindowsApplication1,WindowsApplication1Reso urceClass,WindowsApplication1ResourceFile.cs

Al.exe /target:lib
/embed:WindowsApplication1.WindowsApplication1Resou rceClass.resources,WindowsApplication1.WindowsAppl ication1ResourceClass.resources
/culture:en-US /out:WindowsApplication1.resources.dll

both successfuly

Folder structure:
WindowsApplication1\bin\debug\en-US\WindowsApplication1.resources.dll
or
WindowsApplication1\bin\en-US\WindowsApplication1.resources.dll

when I execute the project, on line of code string msg =
WindowsApplication1ResourceClass.ExitMenu;

it rises following exception

System.Resources.MissingManifestResourceException was unhandled
Message="Could not find any resources appropriate for the specified
culture or the neutral culture. Make sure
\"WindowsApplication1.WindowsApplication1ResourceC lass.resources\" was
correctly embedded or linked into assembly \"WindowsApplication1\" at
compile time, or that all the satellite assemblies required are loadable and
fully signed."
Source="mscorlib"
StackTrace:
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name,
CultureInfo culture)
at
WindowsApplication1.WindowsApplication1ResourceCla ss.get_ExitMenu() in
C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\W indowsApplication1ResourceFile.cs:line
68
at WindowsApplication1.Form1..ctor() in C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\F orm1.cs:line 35
at WindowsApplication1.Program.Main() in C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\P rogram.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Thank you very much.



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 - 2008, Jelsoft Enterprises Ltd.