Resources in class library

W

WebDevHokie

Good day,

I have a class library that I am creating and I want to use a resource
file for each of the classes in the library. So I created a resource file
(DataAccessLayer.resx) for each class (done from the Visual Studio IDE) and
I then put the following code in my classes:

ResourceManager o_ResourceManager = new
ResourceManager("DataAccessLayer", Assembly.GetExecutingAssembly());

When I attempt to access any of the elements of the resource file, I get
a missing manifest error. Am I doing something fundamentally wrong here?
I've looked in several articles and I am following them except for the file
names.

Here is the error message:

"Could not find any resources appropriate for the specified culture (or
the neutral culture) in the given assembly. Make sure
"DataAccessLayer.resources" was correctly embedded or linked into assembly
"DataAccessLayer.dll".

Any help is greatly appreciated!

WebDevHokie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top