2013-10-23 86 views
0

我已將WP7應用程序升級到WP8,並且我似乎遇到了無法找到合適解決方案的問題。Restharp Windows Phone 8支持和FileNotLoad異常

我嘗試下載WatTmdb源代碼,更新restsharp .dll文件,生成項目,並嘗試使用新的組件並沒有什麼,也是我的項目是使用RestSharp 103.4.0.0而不是104.1.0.0

事情是,我在這個應用程序中使用RestSharp API與另一個API,它工作正常。

有什麼建議嗎?

Could not load file or assembly 'RestSharp.WindowsPhone, Version=104.1.0.0,  Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 



System.IO.FileLoadException was unhandled by user code 
    HResult=-2146234304 
    Message=Could not load file or assembly 'RestSharp.WindowsPhone, Version=104.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
    Source=WatTmdb.WindowsPhone 
    StackTrace: 
     at WatTmdb.V3.Tmdb..ctor(String apiKey, String language) 
     at WatTmdb.V3.Tmdb..ctor(String apiKey) 
     at Series.Views.Search..ctor() 

回答

1

找到了答案。

我使用了兩個不同的API,它們依賴於RestSharp,導入時有一個版本是103.4.0.0,另一個是在104.1.0.0 ,所以我下載了後者引用它,它的工作方式就像一個魅力。