System.Globalization.CultureNotFoundException: Culture is not supported

Posted by: support on 25 November 2021, 1:14 am EST

  • Posted 25 November 2021, 1:14 am EST

    Hi,

    We encounter sometimes a CultureNotFoundException, when our application (C# + Spread 9) is launched in a Citrix environment.

    How can we fix it?

    Thanks

    System.Exception: Exception handled in FpSpread.WndProc —> System.Globalization.CultureNotFoundException: Culture is not supported.

    Parameter name: culture

    22538 (0x580a) is an invalid culture identifier.

    at System.Globalization.CultureData.GetCultureData(Int32 culture, Boolean bUseUserOverride)

    at System.Globalization.CultureInfo.InitializeFromCultureId(Int32 culture, Boolean useUserOverride)

    at System.Globalization.CultureInfo…ctor(Int32 culture, Boolean useUserOverride)

    at System.Windows.Forms.InputLanguage.get_Culture()

    at FarPoint.Win.spreadImeHelper.GetImeSentenceMode(IntPtr handle)

    at FarPoint.Win.Spread.SpreadView.SetAutoImeMode()

    at FarPoint.Win.Spread.SpreadView.a(Object A_0, SheetViewPropertyChangeEventArgs A_1)

    at FarPoint.Win.Spread.SheetViewPropertyChangeEventHandler.Invoke(Object sender, SheetViewPropertyChangeEventArgs e)

    at FarPoint.Win.Spread.SheetView.FirePropertyChanged(String propertyName)

    at FarPoint.Win.Spread.SheetView.a(Int32 A_0, Int32 A_1, Boolean A_2, Boolean A_3, Boolean& A_4)

    at FarPoint.Win.Spread.SheetView.SetActiveCell(Int32 row, Int32 column, Boolean clearSelection)

    at FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, Nullable`1 A_6)

    at FarPoint.Win.Spread.SpreadView.StartCellSelecting(Int32 rowPane, Int32 columnPane, Int32 row, Int32 column)

    at FarPoint.Win.Spread.SpreadView.a(Int32 A_0, Int32 A_1, MouseEventArgs A_2)

    at FarPoint.Win.Spread.SpreadView.g(MouseEventArgs A_0)

    at FarPoint.Win.Spread.FpSpread.OnMouseDown(MouseEventArgs e)

    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

    at System.Windows.Forms.Control.WndProc(Message& m)

    at FarPoint.Win.Spread.FpSpread.WndProc(Message& m)

    — End of inner exception stack trace —

    at FarPoint.Win.Spread.FpSpread.WndProc(Message& m)

    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

    at System.Windows.Forms.Application.RunDialog(Form form)

    at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

  • Posted 25 November 2021, 6:44 pm EST

    Hi,

    Please continue this thread on your Support case: CAS-27052-T6B2F6.

    Regards

    Avnish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels