DbRepair has stop working loop + System.ArgumentException: Customized cultures cannot be passed by LCID, only by name.

Hi All, I have a problem with emClient - it's just not staring with "dBRepair stop working" loop. Reinstall not helps. Windows 10 Pro Eng+Rus eM Client v6.0.23421 When I try start dBrepair.exe from program folder I see this: System.TypeInitializationException: The type initializer for 'System.Collections.Comparer' threw an exception. ---\> System.ArgumentException: Customized cultures cannot be passed by LCID, only by name. at System.Globalization.CompareInfo.GetCompareInfoWithPrefixedLcid(Int32 cultureKey, Int32 prefix) at System.Globalization.CultureInfo.get\_CompareInfo() at System.Collections.Comparer..ctor(CultureInfo culture) at System.Collections.Comparer..cctor() --- End of inner exception stack trace --- at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer) at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer) at System.Text.RegularExpressions.RegexCharClass.Canonicalize() at System.Text.RegularExpressions.RegexCharClass.ToStringClass() at System.Text.RegularExpressions.RegexParser.ScanRegex() at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache) at System.Text.RegularExpressions.Regex..ctor(String pattern) at DbRepair.Form1.Form1\_Load(Object sender, EventArgs e) dbrepairrebuildall.exe causes same problem. It's so sad...

Hello Roman,
have you made any changes to your regional windows settings recently? (Changing the language of your OS, perhaps?)

Regards,
Olivia

Not recently, but right from Windows install. So, emClient never even start correctly once. I believe it because I chose “language for non-Unicode programs” to “Russian (Russia)” in Language/Advanced Settings/Administrative. I need it for some old programs I use. Actually when I change it to English, emClient works ok.

So, could you recommend me some sort of workaround or make update in future to fix it? I really need my non-Unicode settings to be Russian.

I have the same problem

Error description:

System.TypeInitializationException: The type initializer for ‘System.Collections.Comparer’ threw an exception. —> System.ArgumentException: Customized cultures cannot be passed by LCID, only by name.   at System.Globalization.CompareInfo.GetCompareInfoWithPrefixedLcid(Int32 cultureKey, Int32 prefix)
   at System.Globalization.CultureInfo.get_CompareInfo()
   at System.Collections.Comparer…ctor(CultureInfo culture)
   at System.Collections.Comparer…cctor()
   — End of inner exception stack trace —
   at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
   at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer)
   at System.Text.RegularExpressions.RegexCharClass.Canonicalize()
   at System.Text.RegularExpressions.RegexCharClass.ToStringClass()
   at System.Text.RegularExpressions.RegexParser.ScanRegex()
   at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
   at System.Text.RegularExpressions.Regex…ctor(String pattern, RegexOptions options, Boolean useCache)
   at System.Text.RegularExpressions.Regex…ctor(String pattern)
   at DbRepair.Form1.Form1_Load(Object sender, EventArgs e)

Hi Victor,
could you specify your language and OS settings? Are you using Windows 10? Which language setting do you have in your system now and does changing it to English stop the issue?

Regards,
Olivia

I use windows 10 x64.

I changed the format settings in region and languages to English US from English UK and it solved the problem.

Thank you for your support.

Victor

Hi Roman,
we looked more into this and found it as an active issue on Microsoft feedbacks - it’s even causing some notice Microsoft apps to crash. (for example VisualStudio https://connect.microsoft.com/VisualS…)
Unfortunately that means that we’ll need to wait for Microsoft to fix it, hopefully this will be included in Windows updates.

Best wishes,
Olivia