cancel
Showing results for 
Search instead for 
Did you mean: 

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)

durck0001
Member
1 REPLY 1

nobody help? anyone knows how to contact a support dev or somebody?

durck0001
Member

Type a product name