简体   繁体   English

IPP .NET 3.0 SDK迁移问题:“无法加载类型'Intuit.Ipp.Core.Rest.SyncRestHandler'”

[英]IPP .NET 3.0 SDK Migration Issue: “Could not load type 'Intuit.Ipp.Core.Rest.SyncRestHandler'”

I'm receiving the following error when I try to create my DataService object. 尝试创建DataService对象时收到以下错误。 I recently swapped out the 2.0 SDK for 3.0 and made all the adjustments detailed in the help docs. 我最近将2.0 SDK换成了3.0,并在帮助文档中进行了详细的调整。 Not sure what's going on though. 不确定发生了什么。 Any ideas? 有任何想法吗?

"Could not load type 'Intuit.Ipp.Core.Rest.SyncRestHandler' from assembly 'Intuit.Ipp.Core, Version=2.1.7.0, Culture=neutral, PublicKeyToken=null'" “无法从程序集“ Intuit.Ipp.Core,版本= 2.1.7.0,区域性=中性,PublicKeyToken =空”中加载类型'Intuit.Ipp.Core.Rest.SyncRestHandler'”

OAuthRequestValidator oauthValidator = 
new OAuthRequestValidator(QuickBooksToken, 
                          QuickBooksSecretToken, 
                          QuickBooksConsumerKey, 
                          QuickBooksConsumerSecret);

ServiceContext context = 
new ServiceContext(oauthValidator, QuickBooksRealm, IntuitServicesType.QBO);

//Blows up here           
DataService commonService = new DataService(context);

Same issue for me, and it appears to be somewhat working by making DataService plural: 对我来说,这是同样的问题,并且通过使DataService为复数似乎有些起作用:

DataServices commonService = new DataServices(context);

Unfortunately, has an issue a bit further on and limits the functionality. 不幸的是,这个问题还有待解决,并限制了功能。 For example, I have errors when attempting to use the query service, which apparently expects DataService (singular). 例如,在尝试使用查询服务时出现错误,该服务显然期望使用DataService(单数)。

Method not found: 'Void Intuit.Ipp.Core.ServiceContext.UseDataServices()'.

If I can find a real answer, I will post it here... 如果我能找到真正的答案,请在此处发布...

Update: 更新:

I made a new bin/ folder, added the new sdk dll files and copied whatever else I needed (dotnetoauth etc,). 我做了一个新的bin /文件夹,添加了新的sdk dll文件,然后复制了我需要的其他文件(dotnetoauth等)。 Some minor changes to my code, and viola, it works. 对我的代码进行一些小的更改,中提琴就可以了。

OAuthRequestValidator oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);

ServiceContext context = new ServiceContext(realmId, IntuitServicesType.QBO, oauthValidator);

DataService commonService = new DataService(context);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM