locked
External Resources project RRS feed

  • Question

  • User-1518524124 posted

    In my asp.net web project I am trying to access my resource file that is contained in another project, but I keep receiving the error 'The resource object with key 'HELLO' was not found'.

    Me setup:

    MyProject.Resources.csproj - contains the file UserMessages.resx.  The resource access modifier is set to public.

    MyProject.Web.csproj - has a project reference to MyProject.Resources

    As a test on my default.aspx page, I am trying to access the resource with the following code

    <asp:Label id="label1"  runat="server" Text="<%$ Resources:MyProject.Resources.UserMessages, HELLO%>"></asp:Label>

    but I recieve the error
    "The resource object with key 'HELLO' was not found."  I feel there is probably something simple I am missing, any clues as how I can fix this?



    Friday, March 19, 2010 9:32 AM

Answers