Global Resources not working in Production Environment

Just deployed my solution to a production environment to notice that the Global Resources where not working properly. The first thing which comes to mind is are the actually on the production server and it appears they where not.

The reason was because the resource file was marked as embedded resource instead of content.

 

Mark your global resources as content

Be sure to mark your resource file as content so that it get's compiled. You can notice the difference when you're investigating the result of the build. Notice that in the first build it's actually an embedded resource and in the second a compiled dll.

 

Another fine solution

Hope this makes your day.

 

Using local resources at design time

There are different types of resources and one of them is local resources. When you want to use your local resources at design time you have multiple options in using them one of them is. The control on which we are using the local resource is OpenAuthProviders.ascx

 

Alternate Text and Title

As you'll notice the local resource is used as alternate text and as a title. The local resources are defined as strings in the associating local resource file(s).  

Success in localizing your site(s)

Hope you'll be able to use this in the future. 

This code is used on http://www.propertywell.com/

 

Sponsored by

Calendar

<<  November 2018  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

View posts in large calendar

RecentComments

TextBox