Monday, December 27, 2010

Knet e24paymentpiper.dll errors

Welcome.....

If you have reached this post then you must be frustrated with the numerous errors when trying to implement the e24paymentpipe.dll.

there are not much documents available online as well as this payment gateway is specific to kuwait banking system.

this is a common error
Retrieving the COM class factory for component with CLSID {78EEF9EE-38E9-11D5-9B13-00E0B8184571} failed due to the following error: 80070005

to successfully implement this dll, do the following:

1) Upload e24paymentpipe.dll to the bin folder on your hosting server
2) Register this dll on the system (ask your hosting provider to do this)
3) Assign ASP.NET rights to this e24paymentpipe.dll (ask your hosting provider to do this)
4) Create a folder named "Resource"
5) Upload the file "resource.cgn" to the "Resource" folder
6) Assign ASP.NET rights to this folder (ask your hosting provider to do this)

Here are the changes you need to make in your test code:

=====start of code===========

<%

string product, price, qty, total, name, address, postal; // Declaration of variables
e24PaymentPipeLib.e24PaymentPipeCtlClass MyObj;
MyObj = new e24PaymentPipeLib.e24PaymentPipeCtlClass(); // Create an instance of the dll object

total = Request.QueryString["total"];
try
{

MyObj.Action = "1"; // Purchase Transaction
MyObj.Amt = "100"; // <----This is the amount i entered for testing, The amount of purchase
MyObj.Currency = "414"; // KD Currency
MyObj.Language = "USA"; // Payment Page Language
MyObj.ResponseUrl = "https://YourDomainName.com/Response.aspx"; // Your response URL where you will be notified with of transaction response
MyObj.ErrorUrl = "https://YourDomainName.com/Error.aspx"; //
MyObj.TrackId = (new Random().Next(10000000) + 1).ToString(); // You should create a new unique track ID for each transaction
MyObj.ResourcePath = @"CompletePath\Resource\"; // <---Make sure you have the right path to this folder, Directory to your resource.cgn ending with \
MyObj.Alias = "yourwebsitealias"; // Alias of the plug-in, case-sensitive
MyObj.Udf1 = "User Defined Field 1";
MyObj.Udf2 = "User Defined Field 2";
MyObj.Udf3 = "User Defined Field 3";
MyObj.Udf4 = "User Defined Field 4";
MyObj.Udf5 = "User Defined Field 5";

//Perform the payment initilization

====end of code========

If your hosting provider cannot help you with this then try this hosting provider, it has been around since 2001 and provides Business class webhosting http://www.hostingguru.com or write to me and i can assist you with the hosting and code.

thanks

Mehdi

14 comments:

  1. Where can i can the dll and cgn file? where can i download it? thanks

    ReplyDelete
  2. you can get it from your payment provider

    ReplyDelete
  3. Great Info..Really helpful.Thanks for ur interesting blog.
    Shopping Cart Software Solutions

    ReplyDelete
  4. I have two question:
    1.How can allow full control to authenticated users over e24paymentpipe.dll and
    2.How can allow application pool to run under local services instead of network services

    Please help me.

    Thanks in advance.

    ReplyDelete
  5. Hi aantu,
    Goto d folder which u hav pasted the ddl file and give it full ctrl.
    For the app pool to run under local services, goto IIS and advncd setings.. u can chang it der..
    Pls reply if any issues..happy to help..
    Sandy, Kerala, India

    ReplyDelete
  6. TRANSACTION Message : -1
    ERROR Message : Name not resolved

    Can anybody help!!!

    Siven

    ReplyDelete
  7. hi mehdi thanks for all the information.
    I heve one question con we run the knet app with our website in out computer before uploding it on to the server. if yes how?
    regards
    Alam

    ReplyDelete
    Replies
    1. Hi Naoroz,

      I have not tested it locally yet, but you can follow the same procedures for local server.
      Create the website in IIS and apply the permissions.
      Let me know how it goes.

      Delete
  8. Retrieving the COM class factory for component with CLSID {78EEF9EE-38E9-11D5-9B13-00E0B8184571} failed due to the following error: 80040154.

    ReplyDelete
  9. Thanks for Posting ! first time I have found a genuine post related to Knet.

    ReplyDelete
  10. Hi, I followed instructions that you mentioned , everything is good and getting the rawmessage as "ERROR - CM90003- no records found"

    ReplyDelete
    Replies
    1. Hi Gopal, did you get the solution ?
      same error here..

      Delete
  11. Hi...i got this error "Unable to open resource" and don't know...how to solve it...can you please explain..??

    ReplyDelete
  12. hi , i have done regsvr32 for e24paymentpipe in my server but when i just copy files to plesk windows hosting, i go to buy page and then on click of button for payment, i get error: Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: System.Security.Permissions.SecurityPermission

    ReplyDelete