System.NotSupportedException…the .NET Framework does not enable CAS policy

************** Exception Text **************System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.****************************************


Cause: The above error occurs when starting the process of auto-generating a WCF or WSDL plug-in in AppStudio. This is a permissions issue on the plugin dll.

Resolution: The error occurs when you copy over the WCFPlugin.dll or WSDLPlugin.dll file from another environment and Windows flags it as a security risk and blocks it.  To resolve this error, you have to manually unblock it by:

  1. Right clicking on the dll and select Properties.
  2. Under the General tab at the bottom select Unblock.
.Image1.png
3. Auto-generate again. You should no longer see this error message.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk