Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 990953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:01:46+00:00 2026-05-16T06:01:46+00:00

I’m getting the following error when I call the SaveChanges() method on my entity

  • 0

I’m getting the following error when I call the SaveChanges() method on my entity context:

Culture ‘en’ is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread’s current culture.

My browser culture is set to en-us and so is my OS (tested on windows 7, vista and server 2003).

using(SubscriptionEntity context = new SubscriptionEntity())
{

            User user = new User();
            user.First_Name = firstName;
            user.Last_Name = lastName;
            user.Company = company;
            user.Job_Title = jobTitle;
            user.Email_Address = email;
            user.Address1 = address1;
            user.Date_Created = DateTime.Now;


            User_Mail_Preference_Language_Format user_mail_format_language = new User_Mail_Preference_Language_Format();
            user_mail_format_language.Mail_Preferences_Format = context.Mail_Preferences_Format.FirstOrDefault(p => p.Mail_Preferences_Format_ID == mailFormat);
            user_mail_format_language.Mail_Preferences_Language = context.Mail_Preferences_Language.FirstOrDefault(t => t.Mail_Preferences_Language_ID == languagePreference);
            user.User_Mail_Preference_Language_Format.Add(user_mail_format_language);


            foreach (int i in aoi)
            {
                User_Area_of_Interest user_aoi = new User_Area_of_Interest();
                user_aoi.Area_of_Interest = context.Area_of_Interest.First(p => p.Area_of_Interest_ID == i);
                user.User_Area_of_Interest.Add(user_aoi);
            }

            context.AddToUser(user);
            context.SaveChanges();

Error:
[NotSupportedException: Culture ‘en’ is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread’s current culture.]
System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture) +7484386
System.Globalization.CultureInfo.get_NumberFormat() +13
System.Globalization.NumberFormatInfo.GetInstance(IFormatProvider formatProvider) +89
System.Data.EntityUtil.ConvertCardinalityToString(Nullable1 cardinality) +90
System.Data.EntityUtil.UpdateRelationshipCardinalityConstraintViolation(String relationshipSetName, Int32 minimumCount, Nullable
1 maximumCount, String entitySetName, Int32 actualCount, String otherEndPluralName, IEntityStateEntry stateEntry) +26
System.Data.Mapping.Update.Internal.RelationshipConstraintValidator.ValidateConstraints() +417
System.Data.Mapping.Update.Internal.UpdateTranslator.ProduceCommands() +59
System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) +210
System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache) +117
System.Data.Objects.ObjectContext.SaveChanges(Boolean acceptChangesDuringSave) +453
System.Data.Objects.ObjectContext.SaveChanges() +9
Osler.PublicWeb.Subscription.Business.Subscription.AddSubscription(String firstName, String lastName, String company, String jobTitle, String email, String address1, String address2, String city, String provinceState, String postalCode, String country, Int32 languagePreference, Int32 mailFormat, List`1 aoi) in D:\DevProjects\OslerDOTcom\Main\Source\Code\Osler.com\Osler.PublicWeb.Subscription.Business\Subscription.cs:150
osler_ContentTemplates_CT_EmailSubscriptions.SaveSubscriptionInfo() in c:\Inetpub\wwwroot\dev.osler.com\osler\ContentTemplates\CT_EmailSubscriptions.ascx.cs:338
osler_ContentTemplates_CT_EmailSubscriptions.Button1_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\dev.osler.com\osler\ContentTemplates\CT_EmailSubscriptions.ascx.cs:38
System.Web.UI.HtmlControls.HtmlButton.OnServerClick(EventArgs e) +111
System.Web.UI.HtmlControls.HtmlButton.RaisePostBackEvent(String eventArgument) +109
System.Web.UI.HtmlControls.HtmlButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:01:47+00:00Added an answer on May 16, 2026 at 6:01 am

    See Bug in Entity Framework. Entity Framework is seeing your culture as “en”(which is culture neutral) not “en-us”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 491k
  • Answers 492k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you can get the data into CSV/TSV format, Node… May 16, 2026 at 10:17 am
  • Editorial Team
    Editorial Team added an answer Update to Dynamic Proxy 2.2 or 2.5 It is more… May 16, 2026 at 10:17 am
  • Editorial Team
    Editorial Team added an answer At first glance, catching a general Exception object and throwing… May 16, 2026 at 10:17 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a JSP page retrieving data and when single or double quotes are
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.