开发者

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 ultimat开发者_如何学Pythonely I don't like errors appearing even if they have no apparent effect.


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.


Don't know if was a issue only in my machine, but enabling the following config, solved the case.

Debug -> Options -> Debugging and check Enable Just My Code (Managed Only)

StackOverflow Reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜