Hi Everyone,
I'm a bit stuck onthis one, working code in console application triggers following error with on demand workflow :
--------------
Error Message:
Unhandled exception:
Exception type: Microsoft.Xrm.Sdk.InvalidPluginExecutionException
Message: Inheritance security rules violated while overriding member: 'Microsoft.Reporting.WinForms.LocalReport.System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
--------------
We narrowed the issue down to this snippet :
public static Stream GetStreamFromUrl(string url) { byte[] imageData = null; using (var wc = new System.Net.WebClient()) { imageData = wc.DownloadData(url); } return new MemoryStream(imageData); }
Unfortunately I don't where to go from here, most posts I red indicate that it is because of the sandbox registration of the Custom Workflow Activity (It's for an online Dynamics).
references:
I am requesting against a static .rdlc file with no authentication (Azure public blob storage).
Thanks for your kind replies !
*This post is locked for comments