Thanks for the reply.
I did add those keys and sections to the web.config file before I posted my first questions about getting this work. I have since double and triple checked the entries and look exactly like how you outlined them here as well as in the documentation. However my problem still persists with the 'Type initialization error'. Any other ideas I can try?
Also here is another questions for you it is one I will have to deal with in the near future. How is the best way to handle 2 stores on one DNN instance each on different portals, but they both use LinkPoint and both will need to use the DotNetChargeProvider? By modifing the provider and adding the Referrer property into it with the URL of one of the stores how can I handle the other? Thought I would ask your opinion. I did purchase the CATALook source so if I need to change something in that I can.
Thanks again!
- Dorian
1. Did you rebuild the dotnetchargeprovider with your dotnetcharge.dll?
2. In this case you can not add the parameters to the code. You must enter the parameters into the field: 'additional parameters' of module CAT_StoreSettings.
You can enter the following additional parameters separated by a ‘;’ into the field ‘Additional Parameters’:
UserName
AccountID
CustomerID
Referrer
RequestedACI
StoreNumber
TerminalID
TerminalNumber
AgentBankNumber
AgentChainNumber
MerchantName
MerchantCity
MerchantPhone
MerchantState
MerchantZipPostal
MerchantCountry
TransactionOrigin
Partner
Example:
dotnetcharge:UserName=xyz;AccountID=abc
Thanks for the info. I switched back to the original DotNetChargeProvider .dll file, added the parameters you listed into the additional parameters area and I tested it again.
I still got the same error. I did grab more info about it from the Log Viewer though and was looking into the source code to see where it might be occuring at. Here is the error in full:
AssemblyVersion: 03.01.01Method: System.Activator.CreateInstanceFileName: FileLineNumber: 0FileColumnNumber: 0PortalID: 21PortalName: Christmas Craft and Food FairUserID: 145UserName: dorianActiveTabID: 910ActiveTabName: CartAbsoluteURL: /Default.aspxAbsoluteURLReferrer: https://www.christmascraftandfoodfair.com/Default.aspx?tabid=910&CC=1&SSL=noExceptionGUID: 1fd00d9c-2b15-4f51-b487-dfe79fe1663bDefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProviderInnerException: The type initializer for "CATALooK.Modules.GatewayProvider.DotNetChargeProvider" threw an exception.Message: DotNetNuke.Services.Exceptions.PageLoadException: The type initializer for "CATALooK.Modules.GatewayProvider.DotNetChargeProvider" threw an exception. ---> System.TypeInitializationException: The type initializer for "CATALooK.Modules.GatewayProvider.DotNetChargeProvider" threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType) at CATALooK.Modules.GatewayProvider.DotNetChargeProvider.CreateProvider() at CATALooK.Modules.GatewayProvider.DotNetChargeProvider..cctor() --- End of inner exception stack trace --- at CATALooK.Modules.GatewayProvider.DotNetChargeProvider.Instance() at CATALooK.CreditCardInfo.Charge(String CCPaymentProcessor) at CATALooK.ShoppingCart.cmdSendCardInfo_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---StackTrace: Source:
From what I can tell by the error and the source code is that the error is occuring when it tries to kick in the DotNetChargeProvider, but given that I have the entries for it in the web.config file I am still not sure why this error is occuring. I will double check the values and places where I have the changes to the web.config file.
Thanks!