473,670 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'System.Resourc es.MissingManif estResourceExce ption'

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.Resourc es.MissingManif estResourceExce ption' has occured in
mscorlib.dll.

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

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

jesse
Nov 15 '05 #1
3 12648
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.MyResourc e.File'.

Hope this helps,

"Jesse" <je****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.Resourc es.MissingManif estResourceExce ption' has occured in
mscorlib.dll.

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

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.resource s.dll >> embed.txt

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

/t:lib
/embed:AboutForm .en.resources,T est.AboutForm.e n.resources
/embed:Administr ationForm.en.re sources,Test.Ad ministrationFor m.en.resources
/embed:DiagramOv erviewForm.en.r esources,Test.D iagramOverviewF orm.en.resource
s
/embed:FOUpdateF orm.en.resource s,Test.FOUpdate Form.en.resourc es
/culture:en
/out:Test.resour ces.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.r esources.dll the
neutral culture in the winexe Text.exe. The culture-dlls I copied in the
applicationfold er as the follow structure.

applicationfold er\en\Test.reso urces.dll
applicationfold er\en-US\Test.resourc es.dll

Is there a mistake so far ?
thanks jesse
"Buddy" <bu***@onlineho me.com> schrieb im Newsbeitrag
news:#v******** ******@TK2MSFTN GP09.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.MyResourc e.File'.

Hope this helps,

"Jesse" <je****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.Resourc es.MissingManif estResourceExce ption' has occured in
mscorlib.dll.

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

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

accurate
in the assembly 'applicationnam e'.

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******** ******@TK2MSFTN GP09.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.resource s.dll >> embed.txt

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

/t:lib
/embed:AboutForm .en.resources,T est.AboutForm.e n.resources
/embed:Administr ationForm.en.re sources,Test.Ad ministrationFor m.en.resources /embed:DiagramOv erviewForm.en.r esources,Test.D iagramOverviewF orm.en.resource s
/embed:FOUpdateF orm.en.resource s,Test.FOUpdate Form.en.resourc es
/culture:en
/out:Test.resour ces.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.r esources.dll the
neutral culture in the winexe Text.exe. The culture-dlls I copied in the
applicationfold er as the follow structure.

applicationfold er\en\Test.reso urces.dll
applicationfold er\en-US\Test.resourc es.dll

Is there a mistake so far ?
thanks jesse
"Buddy" <bu***@onlineho me.com> schrieb im Newsbeitrag
news:#v******** ******@TK2MSFTN GP09.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.MyResourc e.File'.

Hope this helps,

"Jesse" <je****@hotmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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.Resourc es.MissingManif estResourceExce ption' has occured in
mscorlib.dll.

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

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

accurate
in the assembly 'applicationnam e'.

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
4428
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 and fix it. What do you people think? Try the following: 1. Create a new c# windows application called MyTestApp 2. Create a notifyIcon on the form 3. Attach any icon you wish to the notifyIcon 4. Build and run the program to confirm that it...
7
1751
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 SDK sub-directory, as instructed by the MSDN. Step 2: I used the 'reseditor' to create a file named "MyResources.resources" that contains only some string resources. Step 3: I added this resource file to my existing test assembly (does not do
0
1491
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 wrong, I have compiled a satellite dll and placed it in the es which is for spain under the bin. I have also include a MyResources.resx into the VS.net for the neutral language.
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 the neutral culture) in the given assembly. Make sure "ClientForm.resources" was correctly embedded or linked into assembly "MyApplication".
0
1210
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 the way to expose events. I added the following code to my class. Imports System.IO Imports Assetta.ColumnStyles Imports ICSharpCode.SharpZipLib.Zip.Compression Imports ICSharpCode.SharpZipLib.Zip.Compression.Streams
2
1768
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 "System.Resources.MissingManifestResourceException" before the main from is displayed. I've looked in the corresponding resx file and there is an entry for the icon. Why am I getting this problem and more importantly how do I fix it thanks,
1
3197
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. strings). The problem is whenever I try to test the webservice I get: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure...
0
1875
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 when i click a button on form1 which was generated by tht original exe i should get another exe generated. Now iam able to that using compiler parameters. But when i tried the same concept on my project iam getting an error saying that :
0
1587
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 when i click a button on form1 which was generated by tht original exe i should get another exe generated. Now iam able to that using compiler parameters. But when i tried the same concept on my project iam getting an error saying that :
0
8468
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8660
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7415
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.