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

ResourceManager Object not loading resources properly.

I am loading a resource manager object
(Resources.ResourceManager.CreateFileBasedResource Manager
(resourceName, ".", Nothing) )
and there are no problems.

However, when I try to access a key based value, an
exception is thrown (because there are no values inside
the resource manager).

The resx file I'm loading is full of the values I need,
but for some reason once it's attempted to be loaded into
memory, the resource manager shows the count of
keys/values to be zero.

I know it's loading the right file because the path is
correct, and if there was something wrong with the path I
presume the CreateFileBasedResourceManager would throw and
exception (which it does not).

I know i'm using the correct culture, because I checked
inside the
System.THreading.THread.CurrentThread.CurrentUICul ture.ToSt
ring() function and it returned en-US

The funny thing is that this code was working just last
week, but then I branched it in my CVS and now there is a
problem.

If anybody knows of something I may have overlooked, I
sure would appreciate a heads up.

Thanks in advance to all those who reply.
Nov 20 '05 #1
0 885

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

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
3
by: Craig | last post by:
Hi I'm creating a web control whereby I use a resource file to store strings for property descriptions and so forth. The namespace for the control is: Unsd.Web.WebControls all classes in the...
2
by: FireStarter | last post by:
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>,...
0
by: Weenie the Pooh | last post by:
We are writing an ASP.Net C# application (VS 2003) and plan to use embedded resources files for french, german and english UI. I created resx files named _todo.resx and _todo.fr-CH.resx Here...
0
by: Ricardo Corsi | last post by:
Hi, I have a websystem (ASP.Net -VB) that uses a resourceManager to swicth between 3 diferent languages. Inside my network, My applicattion works very nice. But, when i try to run outside my...
4
by: Peter | last post by:
Hi! I'm developing components (webparts) for a sharepoint site and are currently having some problems with the resource manager. The site supports two languages (English and Swedish) and when...
1
by: Mircea Pleteriu | last post by:
Hi, I've created a test aspnet web application which contains one page only. There is only one label control placed on the page. The text of the label control is set on server side by the...
0
by: Ramon Rocha | last post by:
Dear friends, How do I do to create a ResourceManager in global.asax? I was tried: Application("RM") = New ResourceManager("strings", Server.MapPath("resources"), Nothing) But return, on...
7
by: Dennis | last post by:
I have a .resx (xml) file that contains resources. I am trying to follow the example in MSDN for creating the resource Manager as follows: Dim myAssembly As System.Reflection.Assembly...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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,...

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.