致电apiclient.requestjwtusertoken正在抛出retsharp例外

发布于 2025-01-22 22:06:08 字数 708 浏览 1 评论 0原文

我有一个空的测试网页调用apiclient.requestjwtusertoken(),如下所示,它立即抛出了RESTSHARP异常以下:

        OAuth.OAuthToken authToken = ApiClient.RequestJWTUserToken(IntegrationKey,
                        ImpersonatedUserGuid,
                        AuthServer,
                        Encoding.UTF8.GetBytes(PrivateKey),
                        1);

system.missingmethodexception:'找不到方法:'void restsharp.restsharp.restclclient.set_time_time_time out(int32)'。

我使用完全相同的调用对另一个工作项目验证了参数。 该项目使用DocuSign 5.10.0和RestSharp 107.3.0。我已经卸载 /重新安装了这两个软件包,并且还降级以匹配我的另一个项目(分别为5.8.0和106.12.0),但没有欢乐。

几乎感觉像某种DLL地狱状况,但不确定如何进行。

谷歌搜索例外没有产生相关结果。我犹豫不决地弄乱我的工作项目,以免它破裂。希望有人能有所见识,感谢您的任何帮助。

I have an empty test web page calling ApiClient.RequestJWTUserToken() as shown below and it immediately throws the RestSharp exception following:

        OAuth.OAuthToken authToken = ApiClient.RequestJWTUserToken(IntegrationKey,
                        ImpersonatedUserGuid,
                        AuthServer,
                        Encoding.UTF8.GetBytes(PrivateKey),
                        1);

System.MissingMethodException: 'Method not found: 'Void RestSharp.RestClient.set_Timeout(Int32)'.'

I have verified the parameters against another working project using the exact same call.
The project is using DocuSign 5.10.0 and RestSharp 107.3.0. I have uninstalled / reinstalled both packages and also downgraded to match my other project (5.8.0 and 106.12.0 respectively) but no joy.

Almost feels like some kind of dll hell situation but not sure how to proceed.

Googling the exception has yielded no relevant results. I am hesitant to mess with my working project lest it breaks as well. Hoping someone out there has some insight, thanks for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2025-01-29 22:06:08

显然,通过Nuget&删除参考文献不一定从bin文件夹中删除相关的二进制文件,也不一定从app.config或web.config的restsharp 107中删除了对RestSharp 107的所有硬编码引用。这样做,然后仅添加DocuSign 5.10.0(截至目前最新的稳定)软件包可以做到这一点。感谢@alexeyzimarev的指针。

Apparently uninstalling via NuGet & removing references did not necessarily remove the related binaries from the bin folder, nor all hardcoded references to RestSharp 107 from app.config or web.config's. Doing so and then adding only the DocuSign 5.10.0 (latest stable as of now) package did the trick. Thanks @AlexeyZimarev for the pointer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文