Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to create order API with transfer But HttpWebRequest is getting error "System.Net.WebException The underlying connection was closed" #36

Open
ictgeeta opened this issue Dec 18, 2019 · 4 comments

Comments

@ictgeeta
Copy link

No description provided.

@adukale
Copy link

adukale commented Jan 31, 2020

You need to add try catch block for the line where exception is getting thrown.
Here is the example code:
try
{
Razorpay.Api.Order order = client.Order.Create(input);
orderId = order["id"].ToString();
}
catch (Exception ex)
{
Console.WriteLine(ToString());
}

@JayTambe14
Copy link

same to me

@srsivaprasad
Copy link

Same for me as well. any fix ?

@muhtadii
Copy link

muhtadii commented Oct 18, 2022

same issue here. Throws this exception on project targeting .net 4.5.2 while it is working for project targetting .net 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants