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

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.