# Zoom integration with Asp.net mvc

**URL:** <https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650>\
**Category:** Web\
**Created:** [June 8, 2020, 1:45pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650 "2020-06-08T13:45:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![omarseleim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omarseleim/32/10061_2.png) [@omarseleim](https://devforum.zoom.us/u/omarseleim)\
**Post date:** [June 8, 2020, 1:45pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/1 "2020-06-08T13:45:33Z")

</div>

When I create zoom meeting using [ASP.NET](http://ASP.NET) mvc response return error message

**"The underlying connection was closed: An unexpected error occurred on a send."**

The c# code as bellow

```auto
var client = new RestClient("https://api.zoom.us/v2/users/MyEmail/meetings");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer JWT_Token");
request.AddHeader("connection", "keep-alive");
request.AddParameter("application/json", "{\"host_id\" : \"MyHostID\",\"type\" : \"1\",\"topic\" : \"Meeting Topic\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

```

The Api is run on postman with same parameter and work successfully. What is the expected error? If there any helpfull link or good example to integrate zoom in mvc app

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [June 8, 2020, 1:53pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/2 "2020-06-08T13:53:33Z")

</div>

You may need to add something similar to the following in .Net:

```
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Xor SecurityProtocolType.Tls11 Xor SecurityProtocolType.Tls
```

---

<div class="post-metadata">

**Author:** ![omarseleim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/omarseleim/32/10061_2.png) [@omarseleim](https://devforum.zoom.us/u/omarseleim)\
**Post date:** [June 8, 2020, 1:58pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/3 "2020-06-08T13:58:15Z")

</div>

where I add this code ?

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [June 8, 2020, 2:01pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/4 "2020-06-08T14:01:59Z")

</div>

Anywhere before the code you posted above will work.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 12, 2020, 8:45pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/5 "2020-06-12T20:45:50Z")

</div>

Thanks @sales1 for the solution! 🙂

Let us know if you have additional questions @omarseleim!

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:01pm UTC](https://devforum.zoom.us/t/zoom-integration-with-asp-net-mvc/20650/6 "2020-08-21T22:01:39Z")

</div>

Closed on August 21, 2020, 10:01pm UTC


