visual studio 2010 - Something strange happens with ASP.net resources files -


Today something strange with me.

I a ???? I am working on a multilingual application of Global Resources.

I have many files, one for each language companies, ie AS.RACS, COMPANIES.An.RACS, etc. No special or different from any other simple multi-lingual app.

Today, the app has failed and I have detected this problem that HTTTtext Gate Global ResourceObject Resource File Is Not Found.

After scratched my head for a while, I remember that yesterday, before I stopped my Visual Studio, a resource file was removed which was wasted and this file was actually unused Was empty

Just for what you never know ???? I have a new empty resource file, and Walla !!!

The only difference with this file is that the name of the test.resx name is given without language. I did not get it, it's very weird.

Another interesting thing is that when I try to use resources with resources then "resource." ???

Iv ???? Using Visual Studio 2010 with MVC 3

Thank you! Edgar

The default resource file (without any language extension such as companies.resx ) Is required for other language-based files (such as companies.es.resx or companies.fr.resx ) while working with resource files for multilingual project.

Cause: When a file does not exist, then matches the existing culture, the default file is used by NAT. For example, you have two language-based files

  1. .fr.resx for French
  2. .es.resx then the default resource file will be used. .resx without a specific language extension

Comments