Site Search:
Sign in | Join | Help
4Penny.net

ASP.NET

Notes, Tricks and Tips on ASP.NET Coding

Setting Up DotNetCharge

Directions for setting up dotnetcharge on Windows Server 2k3 and ASP.NET 2.0:

1.  Extract the provided zip file to the C:\dotnetcharge directory.  (It doesn't need to be this directory, but it does need to be a permanent location, so not the desktop.)

2.  Download the needed dll files from the dotnetcharge website. 
http://www.dotnetcharge.com/cychmck.dll
http://www.dotnetcharge.com/lpicom_6_0.dll
http://www.dotnetcharge.com/PFProCOM.dll

3.  Register the dll's with the following command:
regsvr32.exe <filename>

4.  Download the cybersource dll's.  These need to be placed in your application's bin directory.
http://www.dotnetcharge.com/cybersourcedlls.zip

5.  Register the dll's in the Assembly Cache:

  • Start -> Administrative Tools -> Microsoft .NET Framework 2.0 Configuration
  • Manage the Assembly Cache
  • Add an assembly to the assembly cache
  • Add the "Interop" dlls and the dotnetcharge.dll

6.  Add the following code to the 2.0 machine.config file in the <system.web> section.  Change the assembly line to match the dll provided.  Because we are using dotnetcharge for linkpoint, we need to add a reference to it as well.  If you are using cybercash or verisign PayFlo Pro you will need to reference them.

<compilation>
   <assemblies>


  <add assembly="dotnetcharge, Version=5.9.2865.28160, Culture=neutral, PublicKeyToken=d4e4ba0ceca38710"/>
  <add assembly="Interop.LPICOM_6_0Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d4e4ba0ceca38710"/>



  </assemblies>
 </compilation>

7.  Test your application and it will hopefully work :)

If it gives you COM errors when you run your application, try unregistering the linkpoint dll and reregistering it.

Comments

No Comments