Currently I try to developed application by using SharePoint that retrieve data from List
Now I try to developed for Login Function, The error display as Below
The underlying connection was closed: An unexpected error occurred on a send.
Here with my Source Code
HttpWebRequest endpointRequest =(HttpWebRequest)HttpWebRequest.Create("https://mvponduty.sharepoint.com/sites/devspace/_api/web/Lists"); endpointRequest.Method = "GET"; endpointRequest.Accept = "application/json;odata=verbose"; endpointRequest.Headers.Add("Authorization", "Bearer " + tokenkey.ToString()); HttpWebResponse endpointResponse =(HttpWebResponse)endpointRequest.GetResponse(); lblResult.Text = endpointResponse.ToString();