我試圖通過資源文件鏈接到我的客戶分享從我的網站(RIA服務?Silverlight的主機)向客戶端(Silverlight的)資源文件(.resx文件)。當我嘗試接入資源使用ResourceManager
對象我得到以下錯誤:爲什麼很難與我的Silverlight客戶端共享資源文件(resx)?
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役項目類型的子集不? – 2011-03-15 18:53:08
你是什麼意思? – Jordan 2011-03-15 19:48:56