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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s