Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Culture 'es' is a neutral culture. It cannot be used in

Posted on 2014-04-24
8
Medium Priority
?
642 Views
Last Modified: 2014-04-24
Hello we have a application in ASP.NET 2.0 but in some Google chromes explorers put this message:
NotSupportedException: Culture 'es' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.]
   Like I said just in a few Google chrome browsers how can we fix via web.config maybe? Or what you suggest to do.
Thank you
0
Comment
Question by:coerrace
  • 5
  • 3
8 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40019978
Are you specifying a culture yourself? "es" is the neutral Spanish culture "es-ES" is the specific (although there are other specific cultures covering south america, basque, etc).
0
 

Author Comment

by:coerrace
ID: 40019993
We have a system someone made and left like that has around 2 years but we really don´t know we have the source in visual studio. But this can be fixed?
Thank you
0
 

Author Comment

by:coerrace
ID: 40020005
This line of code is where it marks the error:
Line 1:  <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DefaultPage" culture="auto" meta:resourcekey="PageResource2" uiculture="auto" %>
Line 2:  
Line 3:  <%@ Register TagPrefix="st" TagName="AttachmentViewer" Src="~/AttachmentViewer.ascx" %>

Open in new window

0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40020026
You could potentially correct it by forcing a specific culture rather than leaving it up to the browser, but it really depends on whether you want/need to support the users specific culture or not.

To force a culture you could would need to change auto to something specific like en-US to force a US format.
0
 

Author Comment

by:coerrace
ID: 40020098
how can we do that force and where? If you can with coding format to inderstand.
Thank you
0
 

Author Comment

by:coerrace
ID: 40020118
Of course that focring must work in ASP.NET 2.0 because the application not run in ASP.NET 4.0
Thank you
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 40020129
You'll need to edit the source code for your project and then find the line:
 <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DefaultPage" culture="auto" meta:resourcekey="PageResource2" uiculture="auto" %>

Open in new window

And change it to:
 <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DefaultPage" culture="en-US" meta:resourcekey="PageResource2" uiculture="en-US" %>

Open in new window

Or, as an alternative, you could try adding the following to the System.Web section of the web.config file:
<globalization uiCulture="en-US" culture="en-US" />

Open in new window

0
 

Author Closing Comment

by:coerrace
ID: 40020323
Thank you
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question