不支持区域性名称ne-NP
本文关键字:ne-NP 区域性 不支持 | 更新日期: 2023-09-27 18:18:30
我必须托管一个应用程序内置在c#.net, Asp.net和后台作为oracle。此应用程序已经托管在其中一台服务器上,并且运行平稳。我已经复制了与当前运行服务器配置相同的另一台服务器中的所有文件和文件夹。
IIS的版本是6.0,机器上运行的是windows server 2003。当我部署应用程序时,我在浏览时得到以下错误消息。有谁能帮我解决这个问题吗?
Culture name 'ne-np' is not supported.
Parameter name: name
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.ArgumentException: Culture name 'ne-np' is not supported.
Parameter name: name
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Culture name 'ne-np' is not supported.
Parameter name: name]
System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride) +7481609
System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride) +213
System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) +45
System.Web.HttpServerUtility.CreateReadOnlyCultureInfo(String name) +200
System.Web.UI.Page.set_Culture(String value) +194
_Default.OnPreInit(EventArgs e) +232
System.Web.UI.Page.PerformPreInit() +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
在aspx页面中声明文化:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="xxx.aspx.cs" Inherits="xxx" Culture="ne-NP" %>
添加以下行。配置,因此不需要在每个页面中指定
<globalization uiCulture="ne" culture="ne-NP" requestEncoding="utf-8" responseEncoding="utf-8" />