系统全球化CultureNotFoundException:不支持区域性



我在C#中开发了一个网站,在我的计算机上可以在所有三种浏览器(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上没有。所有浏览器都更新到最新版本,并且都在Windows7上。有人能给我一个提示或解决这个问题的办法吗?感谢

您可以尝试这样做:

转到"调试"菜单->"异常…"。。。并检查"异常"列表中的所有内容是否都未选中。

同时尝试从ASP中删除所有文件。NET临时文件夹出现在以下位置:

C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files

英语不是标识符。尝试使用"en"或"en-US"

最新更新