473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Problem with CultureInfo

Hello,

I have packed a few images into resources files and compiled those files
into a resource dll. The dll has a static function that returns all of the
images. When I try to use the function in an application I get the following
exception (in translation from German):

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

Additional information: For the given culture or the neutral culture no
resource was found in the assembly. Make sure that
'CountryFlagsBevelSmall.resources' is correctly embeded in the assemby.
baseName: CountryFlagsBevelSmall locationInfo: <null> resource file
name: CountryFlagsBevelSmall.resources assembly: MedLibIcons,
Version=1.0.1736.29728, Culture=neutral, PublicKeyToken=fb80360726c11ad7"

The resource file exists and ILDASM shows in the manifest of the dll:
..mresource public MedLibIcons.CountryFlagsBevelSmall.resources
{
}

The function that return the image is the following:
public static Hashtable GetImage(string imgName)
{
ResourceManager rm = new ResourceManager("CountryFlagsBevelSmall",

Assembly.GetExecutingAssembly));
IDictionaryEumerator ide =
rm.GetResourceSet(new CultureInfo(""), false,
true).GetEnumerator();
Hashtable table = new Hashtable();
while (ide.MoveNext())
{
table.Add(ide.Key as string, ide.Value as Image);
}
return table;
}

The docs say that CiltureInfo("") returns the invariant culture which should
work anywhere, where no comparison depending on localization is needed, and
since I do no localized stuff it is good enough for me. And yet I get this
execption?

Additional information: my Windows is German, Visual Studio as well. The
localization of my app is set to "(Standard)".

Any hints please?
Nov 16 '05 #1
0 1213

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

Similar topics

6
by: Willie wjb | last post by:
Hi, i have a client program that sends a filter expression to the server PC. On that server PC this filter is put over a datatable and the result is send back. the server can be located on a...
2
by: choyk1 | last post by:
Hi all, I cannot serialize CultureInfo property as below. It invokes InvalidOperationException. public class One { private CultureInfo culture;
5
by: Adam Klobukowski | last post by:
Hello I need to convert some strings int doubles. Unfortunetly strings do not follow my country culture standarts (we use , to separate decimal from fraction, but strings use . there etc.). ...
3
by: Miguel Dias Moura | last post by:
Hello, i have a Calendar Control in my web site and when it's in my computer the months and weekdays are in portuguese. When i change it to my server the months and weekdays change to english. ...
7
by: kingski | last post by:
Any idea about this ? http://www.developerfusion.co.uk/forums/thread/114379/#114379 "Can any one help me as i am building a shopping cart and it supports multiple currencies but while sending...
0
by: Maran | last post by:
We have come across a situation that I thinks not many have. Grateful for all responses. Regards Maran ************* * Scenario A DataList binds to a DataRow, with "RegionName" och...
4
by: Dirk Behnke | last post by:
How can I start a new process with a different CultureInfo? I have tried already to set the CultureInfo of the thread starting the new process before creating the Process object, but it doesn't...
17
by: Terry Olsen | last post by:
Given that variable dt = "3/31/2007", why does it produce the following exception on some machines? It works fine on my PC, but others have sent me this exception information because it threw up on...
8
by: =?Utf-8?B?T2xpdmllciBHSUw=?= | last post by:
Hello, I try to convert a volume stored as a string value in an XML file into a Decimal object. The volume is stored with comma as decimal separator ("210,12") according to french habits. To be...
0
by: ramesh.nrk | last post by:
Hi, I am developing a windows application which should support different language for this I am using "Resource Manager" default in .net framework. Here I am developing dll for Resource because...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.