G
Guest
Hallo,
I have a problem with a MissingManifestResourceException. I'm trying by days
without finding any solution.
Shortly the context:
I have a .Net application (APPL_1), which does the following:
- purpose: generate resources file in Online dialog for a VS 2005 project
- gets as parameter the base-directory of another Application. (Here: a VS
2005 Project APPL_2.exe)
- creates localized resource objects (in dialog with user) and stores them
in .resources files.
example: APPL_2.resources, APPL_2.de.resources,
APPL_2.de-DE.resources , ...
- creates the satellite assemblies using AL-utility (via Process) using the
created resources files
APPL_2.dll (for de), APPL_2.dll (for de-DE) and stores
them as
APPL_2\bin\debug\de\APPL_2.dll
APPL_2\bin\debug\de-DE\APPL_2.dll
- copies the neutral resources file: to directory
APPL_2\Resources\APPL_2.resources to be embedded in the APPL_2.exe
Working with VS 2005 (Project APPL_2)
- The APPL_2\Resources\APPL_2.resources is added to the project
- the property Embedded Resource is set
- The namespace of all .cs files is the same (company.Net.APPL_2)
- the default namespace in properties of project is the same
(company.Net.APPL_2)
- after building the project, the resource file the obj\debug contains
company.Net.APPL_2.APPL_2.resources (as exspected)
now I exspect, that this resources file after building is embedded in the
main assembly representing the neutral culture.
Running:
- CurrentUICulture is not chganged (de-DE)
- A ResourceManager is created : rm = new ResourceManager("APPL_2",
Assembly.LoadFrom("APPL_2.exe"));
- the access: object x = rm.GetObject("anykey")
- if the resource with that key is available in any satellite, it is
accessed without errors
- if not, I get the MissingManifestResourceException, regardless of the
existence of that key in the neutral resources.
I don't find a way, to get a successful access on the neutral resources.
- if rm is created with : .... Assembly.LoadFrom("APPL_2.exe"), no success
- if rm is created with : .... Assembly.GetExecutingAssembly), no success
I appreciate any help, thankyou
Michael
I have a problem with a MissingManifestResourceException. I'm trying by days
without finding any solution.
Shortly the context:
I have a .Net application (APPL_1), which does the following:
- purpose: generate resources file in Online dialog for a VS 2005 project
- gets as parameter the base-directory of another Application. (Here: a VS
2005 Project APPL_2.exe)
- creates localized resource objects (in dialog with user) and stores them
in .resources files.
example: APPL_2.resources, APPL_2.de.resources,
APPL_2.de-DE.resources , ...
- creates the satellite assemblies using AL-utility (via Process) using the
created resources files
APPL_2.dll (for de), APPL_2.dll (for de-DE) and stores
them as
APPL_2\bin\debug\de\APPL_2.dll
APPL_2\bin\debug\de-DE\APPL_2.dll
- copies the neutral resources file: to directory
APPL_2\Resources\APPL_2.resources to be embedded in the APPL_2.exe
Working with VS 2005 (Project APPL_2)
- The APPL_2\Resources\APPL_2.resources is added to the project
- the property Embedded Resource is set
- The namespace of all .cs files is the same (company.Net.APPL_2)
- the default namespace in properties of project is the same
(company.Net.APPL_2)
- after building the project, the resource file the obj\debug contains
company.Net.APPL_2.APPL_2.resources (as exspected)
now I exspect, that this resources file after building is embedded in the
main assembly representing the neutral culture.
Running:
- CurrentUICulture is not chganged (de-DE)
- A ResourceManager is created : rm = new ResourceManager("APPL_2",
Assembly.LoadFrom("APPL_2.exe"));
- the access: object x = rm.GetObject("anykey")
- if the resource with that key is available in any satellite, it is
accessed without errors
- if not, I get the MissingManifestResourceException, regardless of the
existence of that key in the neutral resources.
I don't find a way, to get a successful access on the neutral resources.
- if rm is created with : .... Assembly.LoadFrom("APPL_2.exe"), no success
- if rm is created with : .... Assembly.GetExecutingAssembly), no success
I appreciate any help, thankyou
Michael