2013-04-04 96 views
0

我在ASP.NET MVC 3 Visual Studio 2012项目中使用了Zendesk C#API包装器(https://github.com/eneifert/ZenDeskApi)。我引用了ZenDeskApi DLL,并且在本地调试模式下一切正常。Zendesk .NET API和ASP.NET MVC 3

当我尝试发布网站我第一次收到以下错误:

Could not load file or assembly '...\Source\Bin\ZenDeskApi.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 

然后我试图将随附包RestSharp.DLL:

Could not load file or assembly '...\Source\Bin\RestSharp.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 

然后我尝试添加该软件包附带的Newtonsoft.Json.NET35.DLL:

Could not load file or assembly ...\Source\Bin\Newtonsoft.Json.Net35.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 

问题是否可能是Newtonsoft.Json.NET35.DLL .NET 3.5版本?与MVC需要的.NET 4不兼容?

我下载了RestSharp源代码(https://github.com/restsharp/RestSharp)来尝试更新Newtonsoft.Json参考.NET版本4.0(可在这里http://json.codeplex.com/),但我惊讶的是RestSharp不引用它。

我该如何发布我的网站?

谢谢。

编辑:在此期间,我发现这个api的v2在这里:https://github.com/eneifert/ZendeskApi_v2但我总是有各种DLLS的.NET版本的问题。我怎样才能找到所有必要的东西来使用.NET 4.0?

回答

0

我解决安装从的NuGet的Zendesk API V2(的Visual Studio 2012中),并使用下面的连接字符串:

https://company.zendesk.com/api/v2 

,而不是

http://company.zendesk.com