Resource file error RRS feed

  • Question

  • User-273899253 posted

    I've made few resource files in next form:

    Text.resx (some old file, have exact same values as .en-US)





    First, i've tried this:

    <a class="showFindDistributerButton contactButton"><asp:Literal runat="server" Text="<%$ Resources:Text, FindYourDistributor %>" /></a>

    but i don't get any changes if i switch languages (reads same english title).

    Then i've tried with this code

    var currentCulture = Thread.CurrentThread.CurrentCulture.IetfLanguageTag;
    string findYourDistributor = Convert.ToString(GetGlobalResourceObject("Text." + currentCulture, "FindYourDistributor"));

    but i get this error:

    Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources.Text.en-GB.resources" was correctly embedded or linked into assembly "App_GlobalResources.3fgk-4b8" at compile time, or that all the satellite assemblies required are loadable and fully signed.

    Please help!

    Monday, January 28, 2013 8:17 AM

All replies

  • User-1626105852 posted

    set the both UIculture and culture to de-DE in the webconfig..

    it should work

    Monday, January 28, 2013 8:57 AM