2013-10-23 85 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 ,所以我下载了后者引用它,它的工作方式就像一个魅力。