gpt4 book ai didi

asp.net - 尝试集成PayPal checkout express,使用PayPal提供的classes\dll,得到: Could not load file or assembly 'log4net

转载 作者:行者123 更新时间:2023-12-04 14:40:59 25 4
gpt4 key购买 nike

使用 .Net 框架 4. 我假设 PayPal 库依赖于这个 log4net 版本需要旧版本还是我根本没有文件?我需要在某处获取此文件还是还有其他解决方法吗?

更新,在安装最新版本的 log4net 后我现在得到同样的错误除了找到文件这次说**:

 The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
com.paypal.sdk.profiles.BaseAPIProfile..cctor() +0




Line 23: {
Line 24: NVPCallerServices caller = new NVPCallerServices();
Line 25: **IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();**

代码。

Stack Trace: 


[FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.]
com.paypal.sdk.profiles.BaseAPIProfile..cctor() +0

[TypeInitializationException: The type initializer for 'com.paypal.sdk.profiles.BaseAPIProfile' threw an exception.]
com.paypal.sdk.profiles.BaseAPIProfile..ctor() +0
com.paypal.sdk.profiles.SignatureAPIProfile..ctor() +29
com.paypal.sdk.profiles.ProfileFactory.createSignatureAPIProfile() +39
GenerateCodeNVP.ECSetExpressCheckout.ECSetExpressCheckoutCode(String returnURL, String cancelURL, String amount, String paymentType, String currencyCode) in C:\Users\Admin\Documents\Visual Studio 2010\Projects\MyProject\DotNetNVPGenerate\ECSetExpressCheckout.cs:25
NeoCart.WebUI.Controllers.CheckoutController.Payment() in C:\Users\Admin\Documents\Visual Studio 2010\Projects\MyProject\NeoCart.WebUI\Controllers\CheckoutController.cs:179
lambda_method(Closure , ControllerBase , Object[] ) +96

最佳答案

Log4net 是一个 separate open-source project .

您可以从 Visual Studio 中获取它 using NuGet ,或者您可以从 Apache 的网站下载它。

关于asp.net - 尝试集成PayPal checkout express,使用PayPal提供的classes\dll,得到: Could not load file or assembly 'log4net,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8640897/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com