473,321 Members | 1,778 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,321 software developers and data experts.

Help with ResourceManager

I entered a couple of strings in the project's resource file
(Resources.resx). At execution time, I want to retrieve one of them:

ResourceManager rm = new ResourceManager(<baseName>,
Assembly.GetExecutingAssembly());

string s = rm.GetString("KEY")
I do not know what to use as the <baseName> parameter, and the help
system is very confusing on the subject. The resource file is set to be
embedded, the project is a Windows application.

I tried to use "resources" or my Assembly name as values, but I'm
getting a MissingManifestResourceException: Could not find any resources
appropriate for the specified culture or the neutral culture. Make sure
"<whatever I try>.resources" was correctly embedded or linked into
assembly "ListSelection" at compile time, or that all the satellite
assemblies required are loadable and fully signed.
Thanks for any pointers you could give me.
Nov 17 '05 #1
2 3243
Did you try Resources with a capital R?

"FireStarter" wrote:
I entered a couple of strings in the project's resource file
(Resources.resx). At execution time, I want to retrieve one of them:

ResourceManager rm = new ResourceManager(<baseName>,
Assembly.GetExecutingAssembly());

string s = rm.GetString("KEY")
I do not know what to use as the <baseName> parameter, and the help
system is very confusing on the subject. The resource file is set to be
embedded, the project is a Windows application.

I tried to use "resources" or my Assembly name as values, but I'm
getting a MissingManifestResourceException: Could not find any resources
appropriate for the specified culture or the neutral culture. Make sure
"<whatever I try>.resources" was correctly embedded or linked into
assembly "ListSelection" at compile time, or that all the satellite
assemblies required are loadable and fully signed.
Thanks for any pointers you could give me.

Nov 17 '05 #2
Yep. Same result...
Thanks for the suggestion, anyway.

john conwell wrote:
Did you try Resources with a capital R?

"FireStarter" wrote:

I entered a couple of strings in the project's resource file
(Resources.resx). At execution time, I want to retrieve one of them:

ResourceManager rm = new ResourceManager(<baseName>,
Assembly.GetExecutingAssembly());

string s = rm.GetString("KEY")
I do not know what to use as the <baseName> parameter, and the help
system is very confusing on the subject. The resource file is set to be
embedded, the project is a Windows application.

I tried to use "resources" or my Assembly name as values, but I'm
getting a MissingManifestResourceException: Could not find any resources
appropriate for the specified culture or the neutral culture. Make sure
"<whatever I try>.resources" was correctly embedded or linked into
assembly "ListSelection" at compile time, or that all the satellite
assemblies required are loadable and fully signed.
Thanks for any pointers you could give me.

Nov 17 '05 #3

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

Similar topics

2
by: Serge Calderara | last post by:
Dear all, I am buiding a quite huge application which is devided in quite many small functionnality that we will call modules here to simplify. I need to implement my exception handling...
1
by: CGuy | last post by:
Hi, I'm trying to develop an ASPX page that supports multiple languages. Everything has gone well till now - 1. Created a project in VS.NET 2003 2. Added 2 resource files named Captions.resx...
1
by: KMILO | last post by:
Hello, Thanks ins advance for reading my message Im trying to use many .resx files for different webforms when I try to the project the following error appears: Could not find any resources...
0
by: Steve B. | last post by:
Hi all, I'm looking for a pretty way to globalize an ASP.Net application. I base on the Globalization Architecture for ASP.NET article from the MSDN Library. If I have a user control...
0
by: marcus | last post by:
I am developing a web site at work that needs to be both in French and English. I have been reading up on using resource files (.resx files) in combination with setting the CultureInfo to either...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
1
by: Franz | last post by:
I know how to use ResourceManager, but I think I don't use it wisely. I have a web user control. Inside the control, I need to call ResourceManager.GetString. However, I also need to call...
4
by: MRD | last post by:
Hi All, I found a useful bit of code on msdn in VC but need it in VB. I've started the conversion but can't quite finish. The code puts a custom Icon on a toolbar (In my case the Word Add-in...
0
by: sagar | last post by:
Hi, I m having a vb.net project in which i created a default resource file Resource.resx as rightclicking on project Add Add new Item resource assembly file In properties of project Output...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.