Click here to Skip to main content
16,013,440 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
I'm having a problem with paypal gateway integration. The code is working good in my local site. But after hosting it's not working in the website. It shows some error like this

VB
[IOException: Authentication failed because the remote party has closed the transport stream.]
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +1100890
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +178
   System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +107
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +248
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +130
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +85
   System.Net.TlsStream.CallProcessAuthentication(Object state) +47
   System.Threading.ExecutionContext.runTryCode(Object userData) +66
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) +166
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +145
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +728
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +44
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +25
   System.Net.ConnectStream.WriteHeaders(Boolean async) +122
[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
   System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) +314
   System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) +4
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +172
   SNPPayPal.com.paypal.sandbox.www.PayPalAPIAASoapBinding.SetExpressCheckout(SetExpressCheckoutReq SetExpressCheckoutReq) in D:\web\karthik\SNPPayPal\SNPPayPal\Web References\com.paypal.sandbox.www\Reference.cs:1453
   SNPPayPal.CheckOutExpress.Button1_Click(Object sender, EventArgs e) in D:\web\karthik\SNPPayPal\SNPPayPal\CheckOutExpress.aspx.cs:50
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Please anybody help me........
Posted
Updated 1-Nov-10 0:55am
v2

So far integrating such payment gateways you must have some production credentials. This what I am seeing from the first shot of your error message.

And there are some settings which needs to be done in the Paypal account, such as set the hosting urls of your application into PayPal account where paypal sends the success/failure response.

For just contact to the Paypal support people they would help you out quickly.

Question: Are you using the same authentication and URLs for Paypal integration which you have used in your local environment ?
 
Share this answer
 
Comments
M.S.Karthikeyan 2-Nov-10 3:19am    
No I gave which I was hosted link.....
Rajesh Anuhya 4-Nov-10 9:14am    
Good...
1 error came form here
[WebException: The underlying connection was closed: An unexpected error occurred on a send.]

Google Search link[^]
May this link can help
Solving "The underlying connection was closed: An unexpected error occurred on a send." (Webservices)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900