Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Globalization.CultureNotFoundException in MVC projects

In all MVC projects that I can remember (I'm now on version 3) I get the error:

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

appearing in the Debug Output pane when the project is run. Thus far I have ignored it because it seemed to make no difference, but ultimately I don't like errors appearing even if they have no apparent effect.

like image 397
CrispinH Avatar asked Jan 15 '11 15:01

CrispinH


1 Answers

All exceptions are appearing in Debug mode, even those that are handled. When an exception is thrown in Debug model Visual Studio stops the execution and alerts you for this exception even if it is properly handled by your code. If a first chance exception is properly handled you can safely ignore it. You can disable first chance exceptions in Visual Studio.

like image 175
Darin Dimitrov Avatar answered Sep 28 '22 08:09

Darin Dimitrov