C# 不支持文化
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14425291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Culture is not supported
提问by Ramtin
I'm using Visual Studio 2012 Ultimate version.
我正在使用 Visual Studio 2012 Ultimate 版本。
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.
不支持文化。参数名称:名称 en-UK 是无效的文化标识符。
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.
说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。
异常详细信息:System.Globalization.CultureNotFoundException:不支持文化。参数名称:名称 en-UK 是无效的文化标识符。
please help me
请帮我
采纳答案by Venson
回答by SteveCav
Go to Debug -> Options -> Debugging and tick "Enable Just My Code"
转到调试 -> 选项 -> 调试并勾选“仅启用我的代码”
回答by Andrii
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.
在我使用 IIS Express 的情况下,这是由于它无法在C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
当前用户运行 IIS Express 时写入。所以我为当前用户添加了写入它的权限以解决错误。