'paypal.basepaypalservice'类型在未引用的程序集中定义 [英] The type 'paypal.basepaypalservice' is defined in an assembly that is not referenced
本文介绍了'paypal.basepaypalservice'类型在未引用的程序集中定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am using 2 Dll these name is
1 .PayPalCoreSDK.dll version-1.7.1.0
2. PayPalAdaptivePaymentsSDK.dll version-2.15.117.0
I am using these above dll's in my project but i am getting error message when i try to build my source code
Error Message-
"The type 'PayPal.BasePayPalService' is defined in an assembly that is not referenced. You
must add a reference to assembly 'PayPalCoreSDK, Version=1.7.0.0, Culture=neutral,
PublicKeyToken=5b4afc1ccaef40fb'".
please help me how to resolve this issue.
我有什么尝试过:
我在web.config文件中做了一些更改,并尝试多次更改DLL
What I have tried:
I have done some changes in web.config file and try to change the DLL multiple times
推荐答案
错误是不言自明的,添加对PayPalCoreSDK.dll的引用并确保它是版本1.7.0.0,或者如果您没有那个确切的版本,您可以尝试bindingRedirect,但不能保证这将是有效的。
重定向程序集版本 [ ^ ]
The error is self-explanatory, add a reference to PayPalCoreSDK.dll and ensure it is version 1.7.0.0, or if you don't have that exact version you can try a bindingRedirect but there is no guarantee that will work.
Redirecting Assembly Versions[^]
这篇关于'paypal.basepaypalservice'类型在未引用的程序集中定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文