Environment: C#, ASP.NET, ZoomNet 0.42.3
I am able to create a meeting using the following code:
var apikey = "myapikey"; var apiSecret = "mysecret"; var connection = new JwtConnectionInfo(apikey, apiSecret); var zoomClient = new ZoomClient(connection); var result = zoomClient.Meetings.CreateScheduledMeetingAsync("firstname.lastname@example.org", "", "no agenda por favor", new DateTime(2022, 5, 26, 14, 0, 0), 90);
I tried modifying the line to add the ‘await’ and ConfigureAsync as such:
var result = await zoomClient.Meetings.CreateScheduledMeetingAsync("email@example.com", "", "no agenda por favor", new DateTime(2022, 5, 26, 14, 0, 0), 90).ConfigureAwait(false);
I get this error message:
An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page Async=“true” %>. This exception may also indicate an attempt to call an “async void” method, which is generally unsupported within ASP.NET request processing. Instead, the asynchronous method should return a Task, and the caller should await it.
In ASP.NET, how do I accomplish this? I need to get Meeting ID to store in my application.