- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Issue of "unable to load assembly AuthorizeNet.XmlSerializers"
My code something like this, my ide is vs 2019 and framework is 4.6.1, anything wrong and how to fix this??
ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX; (May I use PRODUCTION instead???)
// define the merchant information (authentication / transaction id)
ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
name = loginid,
ItemElementName = ItemChoiceType.transactionKey,
Item = privatekey,
};
var creditCard = new creditCardType
{
cardNumber = card,
expirationDate = xxx,
cardCode = xxx,
};
//standard api call to retrieve response
var paymentType = new paymentType { Item = creditCard };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // authorize only
amount = amount,
payment = paymentType
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
// instantiate the controller that will call the service
var controller = new createTransactionController(request);
controller.Execute();
System.IO.FileNotFoundException
HResult=0x80070002
Message=unable to load โAuthorizeNet.XmlSerializers, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullโ
Source=mscorlib
StackTrace:
On System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
On System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
โ05-18-2021 08:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nobody help? anyone knows how to contact a support dev or somebody?
โ05-19-2021 08:37 AM