Culture is not supported

六眼飞鱼酱① 提交于 2019-12-22 03:43:42

问题


I'm using Visual Studio 2012 Ultimate version.

I've got this error and I don't know how to solve it.

Culture is not supported. Parameter name: name en-UK is an invalid culture identifier.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Globalization.CultureNotFoundException: Culture is not supported. Parameter name: name en-UK is an invalid culture identifier.

please help me


回答1:


You should try en-GB for English (United Kingdom)

List of Cultures




回答2:


Go to Debug -> Options -> Debugging and tick "Enable Just My Code"




回答3:


In my case with IIS Express, it was caused by its inability to write to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files as IIS Express runs by a current user. So I've added permission to write to it for the current user to solve the error.



来源:https://stackoverflow.com/questions/14425291/culture-is-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!