resx文件的问题编译器错误消息:CS0101

时间:2009-07-07 14:18:59

标签: compiler-construction message

在.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 resourceMan;

如果文件重命名为:

UITranslation的 1 .ba-LATN-BA.resx UITranslation的 2 .HR-HR.resx UITranslation 3 的.resx UITranslation.sr-Cyrl-BA.resx

永远的作品。

文件必须在第一种情况下命名。

1 个答案:

答案 0 :(得分:0)

问题不在应用程序或部署过程中。非功能性问题在于Windows Server 2003 SP 1系统。要解决此问题,您需要从SP 1升级到SP 2。