1

在 .NET 应用程序中,我有四个不同名称的 resx 文件

UITranslation.ba-Latn-BA.resx UITranslation.hr-HR.resx UITranslation.resx UITranslation.sr-Cyrl-BA.resx

解决方案在 Windows server 2003 Service pack 1 上发布。从 iis 浏览后,出现以下错误:

第 24 行:[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 第 25 行:[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 第 26 行:公共类 UITranslation { 第 27 行:
第 28 行:私有静态全局:: System.Resources.ResourceManager 资源人;

如果文件重命名为:

UITranslation 1 .ba-Latn-BA.resx UITranslation 2 .hr-HR.resx UITranslation 3 .resx UITranslation.sr-Cyrl-BA.resx

一切正常。

文件需要命名为第一种情况。

4

1 回答 1

0

The problem isn't in the application or in its deployment procedure. Unofortunatelly the problem lies in the Windows Server 2003 SP 1 system. To fix it you need to upgrade from SP 1 to SP 2.

于 2009-07-07T15:14:10.650 回答