473,847 Members | 1,493 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 12667
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
4438
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
1760
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
1499
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
1221
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
1782
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
3214
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
1888
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
1599
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
9734
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10654
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
10718
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
10347
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
9493
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...
0
7061
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
5729
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4130
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3168
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.