Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Alex_B 3/28/2008 1:56 PM
I add Strings.resx to project in folder Resources

And try to use it so:
    public partial class Stamper : BaseModuleControl
    {
        private StamperModule _StamperModule;

        protected void Page_Load(object sender, EventArgs e)
        {
            _StamperModule = this.Module as StamperModule;


            // Use Strings.resx

            StampedDataValidator.ErrorMessage = base.GetText("INVALID_STAMPED_DATA");
            GetStamp.Text = base.GetText("GET_STAMP");
        }
...

Have Error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Mse.Cuyahoga.Modules.Stamper.Web.Resources.Strings.resources" was correctly embedded or linked into assembly "Mse.Cuyahoga.Modules.Stamper" at compile time, or that all the satellite assemblies required are loadable and fully signed.

What I do wrong?
Thanks.
# martijnb 3/28/2008 4:57 PM
Is the .resx file marked as embedded resource?

BTW, you can use Reflector to analyze your module dll and see if the resources are in there. Maybe the resources are there, but with the wrong namespace?
# Alex_B 3/31/2008 12:30 PM
martijnb, thanks!

The reason is in the wrong namespace.