I'm administering on premise instance of MS dynamics 365 V8 . this instance contains a plugin that sync data to a FileNet instance using SOAP call . this process has been working in production for several year. recently our server administrator has implemented a new security protocol to turn on the "xframe-option = DENY". after this change all calls to the server are return the following error :
Add following to app.config :
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
</configuration>
try
{
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.Expect100Continue = true;
WebResponse responseObj = request.GetResponse();
Stream dataStream = responseObj.GetResponseStream();
StreamReader streamReader = new StreamReader(dataStream);
response += "Response: \n";
response += streamReader.ReadToEnd();
entity["statuscode"] = new OptionSetValue(1);
}
catch (Exception ex)
{
response += "Error: " + ex.Message;
response += "\n";
response += ex.StackTrace;
response += "\n\n";
response += ex.HelpLink;
entity["statuscode"] = new OptionSetValue(960380000); //error status
}
*This post is locked for comments
I have the same question (0)
Community Member
2
Christoph Pock
1