473,385 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Globalization - Resource File Conflict?

Hi All,

I am trying to use resource files to globalize my website application.
I had this working fine, working through the API for setting page
titles programatically, with the resource files in /resources

I then started to add declarative code to the web forms to controls
such as buttons and labels, as follows:
<asp:Label ID="lblHowFindOut" runat="server" Text="<%$
Resources:how_did_you_find_out_about_this_site %>" />

This resulted in what amounted to a file not found error - Cant
remember the exact error, sorry! I then discovered that resource files
need to be held in App_GlobalResources, so created the folder and
moved my resource files.

I am now getting the following error:
The resource file '/App_GlobalResources/strings.fr-FR.resx' cannot be
used, as it conflicts with another file with the same name.

I have done the following so far:
- A clean/rebuild
- Searched for files containing, or with fr-fr in the filename
- Renamed my resource files from strings.<culture>.resx to
content.<culture>.resx
- Recreated the solution, added all files apart from resource files
which I created from scratch
- Tried removing the strings.fr-fr.resx file, this gives me the same
error, but related to strings.resx (My default culture - en-GB)

I am still getting the error - Afraid a Google didnt show up anything
useful, and the error although precise is not really helping much.

Worth noting that I am specifically setting the culture based on user
selection, rather than relying on detecting browser setting, although
the error occurs on the home page, before I do anything related to
globalization.

Environment: .Net 3.5; VS 2008; W2003 Ent SP1; SQL Server 2005 Std; IE
6
Any suggestions/solutions/ideas will be very much appreciated!
Thank you,

Simon.
Jul 1 '08 #1
1 6966
I just solved this one, well - At least discovered a work around. My
problem was centered around the fact that I was using both
ResourceManager.FileBasedResourceManager.

When setting the value declarativey, the pre-compiled assemblies are
used (Created using resgen.exe <path + name of resx file) - This
requires the .resx files to reside in App_GlobalResources folder, in
the root of your site.

When using the API, the actual .resx files are used.

General idea is that you compile the .resx files, then delete them, or
remove them from your site in case you need to add to them later. But,
if I delete them, the API won't work! If I leave them in place, the
original error I report occurs (Resource file blabla cannot be used
because it conflicts with...).

Solution - Compile the .resx files, move them into another folder (I
chose to call it /resources) and have the API reference them from
there.

Complete PITA having to do this, but I'm happy its working now!

If, by chance I have got this all wrong and missed something obvious -
Please do post to let me know. Hope this helps someone else with the
same issue!
Jul 1 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: enahar | last post by:
Dear Sir/Madam We are going to do the Localization/Globalisation for our product which has nearly got 284 forms using satellite Assemblies. I have got 2 questions 1. How to handle Substrings....
1
by: enahar | last post by:
Dear Sir/Madam We are going to do the Localization/Globalisation for our product which has nearly got 284 forms using satellite Assemblies. I have got 2 questions 1. How to handle Substrings....
1
by: John Stemper | last post by:
Getting resource files to work with VS2002 and ASP.Net seems to be a little flaky. I've added a resource file "strings.resx" to the project. The properties of the files say Build action = ...
9
by: Alf P. Steinbach | last post by:
<what to design a C++ solution for> A Windows API /resource/ is data embedded in the executable, accessed via API functions. A resource is completely identified by the quadruple (id, type,...
0
by: jgkenned | last post by:
I have successfully internationalized my website in several languages. There are several circumstances when I use the GetGlobalResourceObject() method to retrieve resources from resource file in a...
1
by: prabhupr | last post by:
Hi All Is there any easy way to validate if my current code base fully support Localization + Globalization? 1. Any tool to scan all my code base files (aspx. cs,...) and identify if there...
1
by: archu007 | last post by:
Hi everyone I want to implement localization and globalization in my web application. my requirement is i wan t my page contents should be changed dynamically according to the selected culture....
1
by: hardieca | last post by:
Hi, I'm working on a multilingual CMS. I have a number of controls and labels that are generated based on the number of languages the CMS supports (ie. for the section management portion of the...
0
by: soulfly73 | last post by:
Hello all, I have created an ASP.net folder, APP_GLobalResources and put a resource file in called index2.aspx.de-DE.resx. I have placed an label control (<asp:Label ID="Ext" runat="server"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.