.NET 4.0 - CultureNotFoundException [英] .NET 4.0 - CultureNotFoundException

查看:1399
本文介绍了.NET 4.0 - CultureNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经迁移我的ASP.NET MVC 2项目的VS 2010 + .NET 4.0。 现在,当我启动应用程序我的IntelliTrace得到了很多CultureNotFoundException和输出/ Gebug窗口:

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 :

有一个第一次机会异常的类型'System.Globalization.CultureNotFoundException在mscorlib.dll中发生

A first chance exception of type 'System.Globalization.CultureNotFoundException' occurred in mscorlib.dll

我知道什么是第一个机会异常的意思,但是当我尝试调试(增加了CultureNotFoundException到Bebug /异常[引发])为什么前。被抛出我得到这个详细的异常文本:

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.CultureNotFoundException     不支持的消息=文化。   参数名称:名称   设计师是一个无效的文化标识。     来源= mscorlib程序     PARAMNAME =名称     InvalidCultureName =设计师     堆栈跟踪:          在System.Globalization.CultureInfo..ctor(字符串名称,布尔useUserOverride)     的InnerException:

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正试图与名称创建CultureInfo的设计师?

I wonder why .NET is trying to create CultureInfo with name "designer"?

这难道不是错误?

推荐答案

这似乎是这个问题是一个错误,在VS 2010 Beta 2中。

It seems as the problem was a bug in VS 2010 Beta 2.

这篇关于.NET 4.0 - CultureNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆