Culture Problem

Last post 05-12-2004, 11:23 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-12-2004, 9:42 AM 812

    Culture Problem

    I have now put your component into production and am running in to a big problem. Users are getting errors like:

     

    Page: /careercenter/CC04SetUpResume.aspx

    System.ArgumentException: Culture name en-securid is not supported.
    Parameter name: name
    at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
    at System.Globalization.CultureInfo.CreateSpecificCulture(String name)
    at CuteEditor.Editor.get_Culture()
    at CuteEditor.Editor.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain()

     

    Now, I know this has something to do with the way their IE culture settings are configured. My problem is, I have no control over that. I need to know how to:

     

    a) Prevent this error

    b) Prempt this error by forcing the culture to be US

    c) Catch this error and gracefully downgrade to a nother, safter user control that I've created.

     

    How do I do this?

  •  05-12-2004, 11:23 AM 813 in reply to 812

    Re: Culture Problem

    Andrew,

     

    Try use the Culture property to override the setting acquired from client browsers as followings:

     

    editor1.Culture = "en"


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML