1

使用 wpf 在 ac# .net 4.0 应用程序上工作,当应用程序在具有 xp prof sp3 的 pc 上时出现错误 CS0002(请参见下面的跟踪)。在其他机器上运行良好(也赢得 xp prof sp3)。在花了很多时间寻找解决方案之后,我不知道下一步该做什么,也许你可以提供帮助。

我检查了 c:\windows\temp 目录的访问权限,以及 TEMP 和 TMP 环境设置的 temp dir,所有目录都是完全可访问的。电脑有win xp sp 3,我已经安装了所有更新。我以管理员身份运行代码。

如果您有任何建议,请告诉我!谢谢。

Unable to generate a temporary class (result=1).
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.
error CS0002: Unable to load message string from resources.

   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
   at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at NHibernate.Cfg.Configuration..ctor(SettingsFactory settingsFactory)
   at MyNHibernateSession.OpenSession()
4

1 回答 1

0

这似乎是您的 .NET 安装(类型初始化)的问题。请尝试在您的计算机上卸载/重新安装 .NET 框架。

http://comicrack.cyolito.com/forum/8-help/17699-error-on-comicrack-startup

于 2013-07-12T14:31:54.663 回答