Troubleshooting & FAQs

Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay .NET SDK.


1. How to resolve the following error displayed during Orders API integration?

Following are the solutions for two possible errors:

ErrorCause
The server did not send back a well-formed response. Server Response: Array.This error appears if you are using TLS v1 on your client-side.

Resolution

  • Fix 1: Verify if client supports TLS v1.1 using this website: . If yes, upgrade the client to TLS v1.1+.
  • Fix 2: Use the code given below to force TLS v1.2:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

ErrorCause
Exception User-UnhandledThis error appears if you are using TLS v1 on your client-side

Resolution

Use the code given below to force TLS v1.2.

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

2. Does Razorpay support ASP.NET?

We only have the .NET framework on which ASP.NET works; we do not support it for .NET core.


Is this integration guide useful?