473,732 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Culture name 'xxxx' is not supported

Hello All,
In an effort to prepare my WebApp for localization, I have included the
following lines in some of my ASPX pages (the "lab mice" of my web app).

--- Code snippet -----
//---------------------------------------------------------------------
// Set up the localization
//---------------------------------------------------------------------
Thread.CurrentT hread.CurrentCu lture =
CultureInfo.Cre ateSpecificCult ure(Request.Use rLanguages[0]);

Thread.CurrentT hread.CurrentUI Culture = new
CultureInfo(Req uest.UserLangua ges[0]);

LocRM= new ResourceManager ("TapeWareComme rce2002.registr ation.regString s",
typeof(activate profile).Assemb ly);
Thread.CurrentT hread.CurrentCu lture =
CultureInfo.Cre ateSpecificCult ure(Request.Use rLanguages[0]);

--- En dof snippet -----
But two users have received the following error:
"Culture name rs1_8414fa49133 ;q=0.0 is not supported. Parameter name: name"
(full stack trace at bottom).

Is there a better way to implement the CreateSpecificC ulture() call?

TIA,
-tomas
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Argument Exception: Culture name
rs1_8414fa49133 ;q=0.0 is not supported. Parameter name: name

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below.

Stack Trace:

[ArgumentExcepti on: Culture name rs1_8414fa49133 ;q=0.0 is not supported.
Parameter name: name]
System.Globaliz ation.CultureIn fo..ctor(String name, Boolean
useUserOverride ) +218
System.Globaliz ation.CultureIn fo.CreateSpecif icCulture(Strin g name) +28
TapeWareCommerc e2002.Registrat ion.activatepro file.Page_Load( Object
sender, EventArgs e) +66
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +29
System.Web.UI.P age.ProcessRequ estMain() +724

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.0.370 5.288; ASP.NET
Version:1.0.370 5.288



Nov 15 '05 #1
1 16933
Hi Tomas,

The name of the culture you pass to the CreateSpecificC ulture seems to be
invalid. Valid culture names look like:

en-US
en-GB
ru-RU

and it is unlikely that "rs1_8414fa4913 3;q=0.0" is a culture name. You might
check with the docs what the UserLanguages property actually returns.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Tomas Vera" <ta****@NOxSPAM sbcglobal.net> wrote in message
news:fl******** *************** *********@4ax.c om...
Hello All,
In an effort to prepare my WebApp for localization, I have included the
following lines in some of my ASPX pages (the "lab mice" of my web app).

--- Code snippet -----
//---------------------------------------------------------------------
// Set up the localization
//---------------------------------------------------------------------
Thread.CurrentT hread.CurrentCu lture =
CultureInfo.Cre ateSpecificCult ure(Request.Use rLanguages[0]);

Thread.CurrentT hread.CurrentUI Culture = new
CultureInfo(Req uest.UserLangua ges[0]);

LocRM= new ResourceManager ("TapeWareComme rce2002.registr ation.regString s",
typeof(activate profile).Assemb ly);
Thread.CurrentT hread.CurrentCu lture =
CultureInfo.Cre ateSpecificCult ure(Request.Use rLanguages[0]);

--- En dof snippet -----
But two users have received the following error:
"Culture name rs1_8414fa49133 ;q=0.0 is not supported. Parameter name: name" (full stack trace at bottom).

Is there a better way to implement the CreateSpecificC ulture() call?

TIA,
-tomas
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Argument Exception: Culture name
rs1_8414fa49133 ;q=0.0 is not supported. Parameter name: name

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentExcepti on: Culture name rs1_8414fa49133 ;q=0.0 is not supported.
Parameter name: name]
System.Globaliz ation.CultureIn fo..ctor(String name, Boolean
useUserOverride ) +218
System.Globaliz ation.CultureIn fo.CreateSpecif icCulture(Strin g name) +28
TapeWareCommerc e2002.Registrat ion.activatepro file.Page_Load( Object
sender, EventArgs e) +66
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +29
System.Web.UI.P age.ProcessRequ estMain() +724

-------------------------------------------------------------------------- ------
Version Information: Microsoft .NET Framework Version:1.0.370 5.288; ASP.NET Version:1.0.370 5.288



Nov 15 '05 #2

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

Similar topics

0
1083
by: mhouglum | last post by:
I am currently creating a .NET wrapper to update some C++ code. This code uses the libraries for the BEA Message Queue, which may or may not be relevant. I am creating a .dll file in Managed C++ and then trying to link to that .dll in a C# windows app. Everything compiles fine, but when I run the program, as soon as the class referencing this old code is declared, an exception is thrown with the following message: "File or assembly name...
3
13294
by: Joe DeAngelo | last post by:
When I try to compile a source code which should normally run I got this error message error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a using directive or an assembly reference Platform SDK 1.1 is successfuly installed (under Win2000+SP4) So how can cope with this problem? Joe
1
3846
by: Dejan Vesic | last post by:
I found nasty "documentation" bug; ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemglobalizationcultureinfoclasstopic.htm claims that proper culture info name for Serbian (Cyrillic) - Serbia is "Cy-sr-SP" but if you try this, you will get "Culture name Cy-sr-SP is not supported" exception. If you set up culture info via System.Globalization.CultureInfo(0x081A) and than retrieve
2
1791
by: Bobbus | last post by:
Hi, I'm trying to change the culture to Welsh by doing the following: Thread.CurrentThread.CurrentCulture = New CultureInfo("cy-GB") Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture The above code works okay on Windows XP, but fails to work on Server 2003. The following error occurs on Server 2003:
9
3917
by: Edge | last post by:
hi, I am saving the user selected culture in a session variable so I can apply it back to all pages when refreshed and then load the proper .resx values. For that I am using global.asax
1
2914
by: joop23 | last post by:
Hello, I'm getting the following exception. Culture name 'en-securid' is not supported The code is below. What is 'en-securid' and why won't my browser (IE 6) pass in 'en-us?' thx in advance!
12
2139
by: lucky | last post by:
hi guys, right now i'm going through System.Globalization Namespace. and i found very intersting class there called CultureInfo. i was trying to get cultureInfo on the basis of name but i didnt find the way to do it. for example, if i pass the language name "Danish","German",Russian", i'm suppose to get the cultureInfo object of the language. can anyone help me out here?
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.