【发布时间】:2011-03-15 17:56:33
【问题描述】:
我正在尝试通过将资源文件链接到我的客户端来将资源文件(.resx 文件)从我的 Web(RIA 服务?Silverlight 主机)共享到客户端(Silverlight)。当我尝试使用 ResourceManager 对象访问资源时,出现以下错误:
System.Resources.MissingManifestResourceException was caught
Message=Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "PPCa.Modules.ProjectManager.Client.ViewModels.ResourceStrings.resources" was correctly embedded or linked into assembly "PPCa.Modules.ProjectManager.Client" at compile time, or that all the satellite assemblies required are loadable and fully signed.
StackTrace:
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at System.Resources.ResourceManager.GetString(String name)
at PPCa.Modules.ProjectManager.Web.Helpers.ResourceHelper.GetEnumText[TResource](ProjectStatus a_projectStatus)
InnerException:
编辑:
当我说我正在链接资源文件时,我的意思是在将现有 resx 文件添加到我的项目时使用“添加为链接”选项。
【问题讨论】:
-
是不是因为 SL 项目类型使用 .NET 框架的子集而 RIA 服务项目类型没有?
标签: silverlight wcf-ria-services resx