Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 690
  • Last Modified:

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

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
coerrace
Asked:
coerrace
  • 5
  • 3
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
coerraceAuthor Commented:
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
 
coerraceAuthor Commented:
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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Carl TawnSystems and Integration DeveloperCommented:
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
 
coerraceAuthor Commented:
how can we do that force and where? If you can with coding format to inderstand.
Thank you
0
 
coerraceAuthor Commented:
Of course that focring must work in ASP.NET 2.0 because the application not run in ASP.NET 4.0
Thank you
0
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
coerraceAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now