D365[OnPrem]: System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed

Recently, we were using Custom workflow activity in which we were calling report server(using IP address) web service for generating SSRS report. We were using this custom WF activity in one workflow as a step which was getting triggered on create of a record.

While testing this functionality, we got the below error message and the workflow was failing: “System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed”

To fix this error, we deployed the custom workflow activity assembly using non-sandbox mode as shown below:

Hope it helps !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.