Cannot retrieve property ‘Name’ because localization failed in multi lingual website is soloved

Cannot retrieve property ‘Name’ because localization failed. Resources.Resource’ is not public or does not contain a public static string property with the name ”

Errormsg

This raised because of access modifier of Resource file. It should be public.

But access modifier combo can be disabled.

2
How to Fix:

Change Custom tool property to¬†“PublicResXFileCodeGenerator” .

Change Build Action property to “Embedded Resource”

Add Custom Tool Namespace

Final property window look like below

4
Clean solution and rebulid.

Done!!!!.

Advertisements