CultureNotFoundException - 3072(0x0c00)是无效的区域性标识符 [英] CultureNotFoundException - 3072 (0x0c00) is an invalid culture identifier
问题描述
我正在使用
Windows 10 64位操作系统
Windows 10 64 bit operating system
Visual Studio 2015。
Visual Studio 2015.
我使用英语(斯威士兰语),"en-SZ"
I am using English (Swaziland), "en-SZ"
当我运行程序时,当前线程LCID是3072。
When I am running my program the current thread LCID is 3072.
当我尝试使用当前线程LCID 3072( new
CultureInfo ( 3072 ))
When I am trying to create new CultureInfo using current thread LCID 3072 (new CultureInfo(3072))
我有这个错误,我不知道如何解决它。
I've got this error and I don't know how to solve it.
异常类:CultureNotFoundException
Exception class: CultureNotFoundException
异常消息:
不支持文化。
参数名称:culture
Parameter name: culture
3072(0x0c00)是无效的文化标识符。
3072 (0x0c00) is an invalid culture identifier.
如何解决t他的?
推荐答案
您好,您是否已阅读引发异常的原因(请参阅下面的链接)?似乎文化包在您尝试使用它的机器上不可用。你在哪里找到代码?我没有在.NET的可用文化列表中看到它
Hello, did you read the reason the exception was thrown (see link below)? Seems like the culture package is not available on the machine you are attempting to use it on. Where did you find the code? I don't see it in the list of available cultures for .NET
这篇关于CultureNotFoundException - 3072(0x0c00)是无效的区域性标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!