This is an example of web request from CodeActivity on Dynamics CRM Online .
public class CodeActivity1 : CodeActivity
{
protected override void Execute(CodeActivityContext context)
{
var postUrl = "https://httpbin.org/get";
var request = (HttpWebRequest)WebRequest.Create(postUrl);
request.Method = "GET";
request.ContentType = "application/xml";
request.ContentLength = 0;
HttpWebResponse webresponse = (HttpWebResponse)request.GetResponse();
Encoding enc = System.Text.Encoding.GetEncoding("utf-8");
StreamReader responseStream = new StreamReader(webresponse.GetResponseStream(), enc);
var result = responseStream.ReadToEnd();
webresponse.Close();
.....
}
...
}
I receive "The request was aborted: Could not create SSL/TLS secure channel." error. From the Microsoft documentation (msdn.microsoft.com/.../gg334752.aspx) are the following limitations:
*Only the HTTP and HTTPS protocols are allowed.
*Access to localhost (loopback) is not permitted.
*IP addresses cannot be used. You must use a named web address that requires DNS name resolution.
*Anonymous authentication is supported and recommended. There is no provision for prompting the logged on user for credentials or saving those credentials.
Do you have suggestions or ideas relating to the nature of the problem ??
*This post is locked for comments