.NET 4.0 - CultureNotFoundException [英] .NET 4.0 - CultureNotFoundException
问题描述
我已将我的 ASP.NET MVC 2 项目迁移到 VS 2010 + .NET 4.0.现在,当我启动应用程序时,我在 IntelliTrace 和输出/Gebug 窗口中收到很多CultureNotFoundException":
I have migrated my ASP.NET MVC 2 project to VS 2010 + .NET 4.0. Now when i start the application i get a lot of "CultureNotFoundException" in IntelliTrace and Output/Gebug window :
mscorlib.dll 中发生了System.Globalization.CultureNotFoundException"类型的第一次机会异常
A first chance exception of type 'System.Globalization.CultureNotFoundException' occurred in mscorlib.dll
我知道第一次机会异常"是什么意思,但是当我尝试调试时(在 Bebug/Exceptions[Thrown] 中添加了CultureNotFoundException")为什么前.被抛出我得到了这个详细的异常文本:
I know what "A first chance exception" means, but when i try to debug(added "CultureNotFoundException" into Bebug/Exceptions[Thrown]) why ex. is thrown i got this detailed exception text:
发生System.Globalization.CultureNotFoundExceptionMessage=Culture 不受支持.参数名称:名称设计器是无效的文化标识符.源=mscorlib参数名称=名称InvalidCultureName=设计者堆栈跟踪:在 System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)内部异常:
System.Globalization.CultureNotFoundException occurred Message=Culture is not supported. Parameter name: name designer is an invalid culture identifier. Source=mscorlib ParamName=name InvalidCultureName=designer StackTrace: at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) InnerException:
我想知道为什么 .NET 试图创建名为designer"的 CultureInfo?
I wonder why .NET is trying to create CultureInfo with name "designer"?
这不是bug吗?
推荐答案
问题似乎是 VS 2010 Beta 2 中的一个错误.
It seems as the problem was a bug in VS 2010 Beta 2.
这篇关于.NET 4.0 - CultureNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!