How Do I Fix an Authorize.Net DLL Error?

Avatar
  • Answered
Hi Team,

I have working AuthorizeNet.Dll in the code which is customized according to our application. I have a proper build up to 26April2015. On 27April2015, morning, I did a new build with changes. Suddenly, after the new build, my application responded to exceptions due to below error messages.

1. Failed to persist profile to underlying stores
2. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Microsoft.CommerceServer.Runtime System.Collections.ListDictionaryInternal Failed to persist profile to underlying stores. at Microsoft.CommerceServer.Runtime.Profiles.Profile.Update() at GKElite.Application.Presenters.PaymentMethodsPresenter.CreateAuthorizeNetCustomerProfile(String userName) at GKElite.Application.Presenters.PaymentMethodsPresenter.BtnContinue_Click(Object sender, EventArgs e) at GKElite.WebStore.MasterPages.Payment.BtnContinue_Click(Object sender, EventArgs e) https://test.gkelite.com/Pages/Payment.aspx

AuthorizeNet System.Collections.ListDictionaryInternal Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at AuthorizeNet.HttpXmlUtility.CheckForErrors(ANetApiResponse response) at AuthorizeNet.HttpXmlUtility.Send(ANetApiRequest apiRequest) at AuthorizeNet.CustomerGateway.GetCustomer(String profileID) at GKElite.BusinessLayer.AuthorizeNetBL.GetAllCustomerCreditCards(String profile_id) at GKElite.Application.Presenters.PaymentMethodsPresenter.LoadPaymentProfiles() at GKElite.Application.Presenters.PaymentMethodsPresenter.RbtnlstPamentMethods_SelectedIndexChanged(Object sender, EventArgs e) at GKElite.Application.Presenters.PaymentMethodsPresenter.LoadPaymentInfo() at GKElite.Application.Presenters.PaymentMethodsPresenter.PageLoad(Object sender, EventArgs e) at GKElite.WebStore.MasterPages.Payment.Page_Load(Object sender, EventArgs e) https://test.gkelite.com/Pages/Payment.aspx

After observation, I thought its a AuthorizeNet.Dll related to Issue. I have replaced the old working AuthorizeNet.Dll in the Test environment and its working without having exceptions.

May I know is there any workaround to fix this issue, which I need urgently.

Regards,
Sriram
Avatar
johnpaulb-imhs1
Hello Sriram, Thank you for contacting us about AuthorizeNet.Dll issues on a Windows server. Since you "did a new build with changes" on 27April2015, it would lead me to believe this may be related. You also confirmed this in the test environment by replacing the old AuthorizeNet.Dll file. I recommend reviewing these changes, and making them one-by-one (testing each time). This should determine which change is causing the trouble. Also, have you run a check on your memory, since the error suggested a possible memory corruption? If you have any further questions, feel free to post them below. Thank you, John-Paul