我在C#中开发了一个可以在我的计算机上运行所有3个浏览器(FireFox,IE和Chrome)的网站。 在其他计算机上工作在IE上,但在FireFox上收到以下错误:
"Culture is not supported.
Parameter name: name
English 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
English is an invalid culture identifier.
Source Error:
Line 29: if (!String.IsNullOrEmpty(langValue))
Line 30: {
Line 31: UICulture = langValue;
Line 32: //Culture = langValue;
Line 33: "
我在IE和Chrome上的其他计算机上收到了相同的错误,但在FireFox上却没有。 所有浏览器都更新到最新版本,并且在Windows 7上。 有谁可以给我一个提示或解决这个问题,好吗? 感谢
答案 0 :(得分:1)
您可以尝试这样做:
转到“调试”菜单 - >异常...并检查异常列表中是否取消选中所有内容。
还尝试从以下位置的ASP.NET临时文件夹中删除所有文件:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
答案 1 :(得分:1)
英语不是标识符。尝试使用“en”或“en-US”