Resources in class library

Discussion in 'ASP .Net' started by WebDevHokie, Jul 18, 2003.

  1. WebDevHokie

    WebDevHokie Guest

    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
     
    WebDevHokie, Jul 18, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Plattner

    Compile different resources of a class library

    Stefan Plattner, Oct 17, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    370
    Stefan Plattner
    Oct 17, 2003
  2. Mythran
    Replies:
    0
    Views:
    2,763
    Mythran
    Aug 24, 2004
  3. E11
    Replies:
    1
    Views:
    5,793
    Thomas Weidenfeller
    Oct 12, 2005
  4. christopher diggins
    Replies:
    16
    Views:
    1,061
    Pete Becker
    May 4, 2005
  5. Russell E. Owen
    Replies:
    0
    Views:
    850
    Russell E. Owen
    Sep 8, 2006
  6. Dahab
    Replies:
    0
    Views:
    422
    Dahab
    Oct 18, 2006
  7. Joseph Turian
    Replies:
    5
    Views:
    871
  8. =?Utf-8?B?QUo=?=

    Enterprise Library - Class Library Greif.

    =?Utf-8?B?QUo=?=, Oct 26, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    730
    Namret
    Dec 6, 2007
Loading...