2

我有引用PortableLibrary項目的asp.net 4 webforms網站。在網站上,我從PortableLibrary序列化類。當我部署的項目,Web服務器機器IIS6我收到以下錯誤:PortableLibrary無法加載文件或程序集

Could not load file or assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) 

便攜式庫項目引用的System.Xml(v4.0.31029)。

當我試圖部署乾淨的項目沒有引用,只是簡單的串行化的字符串對象,它工作正常。

在web配置中嘗試裝配但沒有成功。

爲什麼我得到這個錯誤?我不知道system.xml的'2.0.5.0'版本來自哪裏。從這裏

+0

你有沒有得到這個解決?我面臨着完全相同的問題。 – 2011-10-14 11:56:12

+0

@Mikael:是的,我寫信給ms支持論壇之一,並立即得到答覆。請查看此處的問題和答案部分:http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981 將Service Pack 1安裝到Visual Studio應該可以解決問題 – Liero 2011-11-14 10:45:31

回答

相關問題