.NET 4.0 - 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 :

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

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 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:

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

Isn't it bug?

Answers


For other people that have this problem, this is usually an exception that is ignored.

Go to the Debug menu -> Exceptions... and ensure that you have everything unchecked for the Exception list.


I had a similar issue with the CultureName "UserCache". To resolve this I deleted all the folders from in here:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

Need Your Help

Apply styles in RSS feed data

javascript jquery asp.net-mvc c#-4.0 yql

How to fetch live data from stcok market using rss feed live using Yahoo Query language . And using this I'm getting data from the market like below :

Converting MyISAM to InnoDB. Beneficial? Consequences?

mysql innodb myisam

We're running a social networking site that logs every member's action (including visiting other member's pages); this involves a lot of writes to the db. These actions are stored in a MyISAM table...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.