473,511 Members | 10,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'System.Resources.MissingManifestResourceException '

Hi together,

I've a problem with compiling an application with a build-Script and run it
after.

Several resource-files I compile with resgen.exe and put the files into a
folders of the language. (en\*.resources, en-US\*.resources ...)
With al.exe I generating several dlls with the format
applicationname.resource.dll (in every language-folders one dll)

I compile the C#-sources with csc and several options and include with
/resource:-Option the dll of the neutral language. There is no error while
compiling.

When I start the application.exe, the Exception above will be shown.

A not handled exception of type
'System.Resources.MissingManifestResourceException ' has occured in
mscorlib.dll.

For this culture (or the neutrale culture) in this assembly no resources has
been found. Make sure that 'SplashForm.resources' will be embedded accurate
in the assembly 'applicationname'.

What's wrong on building the application, do you have an idea ?

jesse
Nov 15 '05 #1
3 12616
You probably are loading the resource filename incorrectly. For example your
resource file might be called Test.MyResource.File.resources and you
probably are not passing in the correct resource name
'Test.MyResource.File'.

Hope this helps,

"Jesse" <je****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi together,

I've a problem with compiling an application with a build-Script and run it after.

Several resource-files I compile with resgen.exe and put the files into a
folders of the language. (en\*.resources, en-US\*.resources ...)
With al.exe I generating several dlls with the format
applicationname.resource.dll (in every language-folders one dll)

I compile the C#-sources with csc and several options and include with
/resource:-Option the dll of the neutral language. There is no error while
compiling.

When I start the application.exe, the Exception above will be shown.

A not handled exception of type
'System.Resources.MissingManifestResourceException ' has occured in
mscorlib.dll.

For this culture (or the neutrale culture) in this assembly no resources has been found. Make sure that 'SplashForm.resources' will be embedded accurate in the assembly 'applicationname'.

What's wrong on building the application, do you have an idea ?

jesse

Nov 15 '05 #2
Thanks Buddy, but it doesn't really works.

Per resgen.exe I get several .resources-files which I compile in a DLL with
the /embed:-option

parameters are %2 - applicationName (Test), %3 - culture (en, en-US ...)

@echo /t:lib > embed.txt
@for %%f in (*.resources) do @echo /embed:%%f,%2.%%f >> embed.txt
@echo /culture:%3 >> embed.txt
@echo /out:%2.resources.dll >> embed.txt

Ther content of the file embed.txt semms like this:

/t:lib
/embed:AboutForm.en.resources,Test.AboutForm.en.res ources
/embed:AdministrationForm.en.resources,Test.Adminis trationForm.en.resources
/embed:DiagramOverviewForm.en.resources,Test.Diagra mOverviewForm.en.resource
s
/embed:FOUpdateForm.en.resources,Test.FOUpdateForm. en.resources
/culture:en
/out:Test.resources.dll

al @embed.txt

The result: In each culture-directory I got a file Test.resources.dll

After this I compile the sources with csc /resource:Test.resources.dll the
neutral culture in the winexe Text.exe. The culture-dlls I copied in the
applicationfolder as the follow structure.

applicationfolder\en\Test.resources.dll
applicationfolder\en-US\Test.resources.dll

Is there a mistake so far ?
thanks jesse
"Buddy" <bu***@onlinehome.com> schrieb im Newsbeitrag
news:#v**************@TK2MSFTNGP09.phx.gbl...
You probably are loading the resource filename incorrectly. For example your resource file might be called Test.MyResource.File.resources and you
probably are not passing in the correct resource name
'Test.MyResource.File'.

Hope this helps,

"Jesse" <je****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi together,

I've a problem with compiling an application with a build-Script and run

it
after.

Several resource-files I compile with resgen.exe and put the files into a folders of the language. (en\*.resources, en-US\*.resources ...)
With al.exe I generating several dlls with the format
applicationname.resource.dll (in every language-folders one dll)

I compile the C#-sources with csc and several options and include with
/resource:-Option the dll of the neutral language. There is no error while compiling.

When I start the application.exe, the Exception above will be shown.

A not handled exception of type
'System.Resources.MissingManifestResourceException ' has occured in
mscorlib.dll.

For this culture (or the neutrale culture) in this assembly no resources

has
been found. Make sure that 'SplashForm.resources' will be embedded

accurate
in the assembly 'applicationname'.

What's wrong on building the application, do you have an idea ?

jesse


Nov 15 '05 #3
Hi,

here's the solution.
You've to compile the resources-files of the neutral language with the
/resource:-option into the assembly, but you have also to write in this
option the namespace or package-name of the resources, then you'll have
access to this resoucres from your application.

thanks jesse

"Jesse" <je****@hotmail.com> schrieb im Newsbeitrag
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Thanks Buddy, but it doesn't really works.

Per resgen.exe I get several .resources-files which I compile in a DLL with the /embed:-option

parameters are %2 - applicationName (Test), %3 - culture (en, en-US ...)

@echo /t:lib > embed.txt
@for %%f in (*.resources) do @echo /embed:%%f,%2.%%f >> embed.txt
@echo /culture:%3 >> embed.txt
@echo /out:%2.resources.dll >> embed.txt

Ther content of the file embed.txt semms like this:

/t:lib
/embed:AboutForm.en.resources,Test.AboutForm.en.res ources
/embed:AdministrationForm.en.resources,Test.Adminis trationForm.en.resources /embed:DiagramOverviewForm.en.resources,Test.Diagra mOverviewForm.en.resource s
/embed:FOUpdateForm.en.resources,Test.FOUpdateForm. en.resources
/culture:en
/out:Test.resources.dll

al @embed.txt

The result: In each culture-directory I got a file Test.resources.dll

After this I compile the sources with csc /resource:Test.resources.dll the
neutral culture in the winexe Text.exe. The culture-dlls I copied in the
applicationfolder as the follow structure.

applicationfolder\en\Test.resources.dll
applicationfolder\en-US\Test.resources.dll

Is there a mistake so far ?
thanks jesse
"Buddy" <bu***@onlinehome.com> schrieb im Newsbeitrag
news:#v**************@TK2MSFTNGP09.phx.gbl...
You probably are loading the resource filename incorrectly. For example your
resource file might be called Test.MyResource.File.resources and you
probably are not passing in the correct resource name
'Test.MyResource.File'.

Hope this helps,

"Jesse" <je****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi together,

I've a problem with compiling an application with a build-Script and
run
it
after.

Several resource-files I compile with resgen.exe and put the files
into a folders of the language. (en\*.resources, en-US\*.resources ...)
With al.exe I generating several dlls with the format
applicationname.resource.dll (in every language-folders one dll)

I compile the C#-sources with csc and several options and include with
/resource:-Option the dll of the neutral language. There is no error while compiling.

When I start the application.exe, the Exception above will be shown.

A not handled exception of type
'System.Resources.MissingManifestResourceException ' has occured in
mscorlib.dll.

For this culture (or the neutrale culture) in this assembly no

resources has
been found. Make sure that 'SplashForm.resources' will be embedded

accurate
in the assembly 'applicationname'.

What's wrong on building the application, do you have an idea ?

jesse



Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4402
by: DelboyJay | last post by:
I have found a strange resource problem, but luckily I have also found the solution which was not obvious from the runtime exception. I really think that the compiler should pick up this problem...
7
1747
by: Ken Allen | last post by:
OK, for a number of reasons I have needed to begin experimenting with resources sooner than I had planned (I had avoided it for now). Step 1: I built the 'reseditor' application that is in the...
0
1481
by: Ian | last post by:
Hi there, Well I managed to compile by satellite dll's but still can't get it to work. It keeps throwing the following error. (see below) My code is ok I think but there must be something...
0
307
by: Naveen Mukkelli | last post by:
Hi, I'm getting the following exception; 'System.Resources.MissingManifestResourceException' : Additional information: Could not find any resources appropriate for the specified culture (or...
0
1192
by: Gene | last post by:
I have a Windows Form control that I have embedded in an ASP.NET page. I now have the need to catch an event from the control on the webpage. After researching the situation I found that this is...
2
1756
by: Aeryn | last post by:
I have a windows solutions containing three forms. All works fine until I customize a form's Icon property. The icon displays fine in the IDE but if I try to run the application it throws...
1
3160
by: Franklin M. Gauer III | last post by:
I create a simple DATAADAPTER in a webservice project. It creates the UPDATE, INSERT, DELETE commands for me - no problem. In vS2005 it creates these commands as RESOURCES in the RESX file (i.e....
0
1861
by: Prashant M | last post by:
iam generating am exe from o/p of the c# application. I mean generating seperate exe dynamically from an exe of one application. suppose o/p of an exe generated for application1 is a form1. then...
0
1571
by: Prashant M | last post by:
iam generating am exe from o/p of the c# application. I mean generating seperate exe dynamically from an exe of one application. suppose o/p of an exe generated for application1 is a form1. then...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.