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 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.
3. Auto-generate again. You should no longer see this error message.
Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk