mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
119 stars 34 forks source link

.Net 4.0 Security Error - GhPython Load Error - Rhino 5 #47

Closed peterschlem closed 11 years ago

peterschlem commented 11 years ago

GhPython will not load into Grasshopper because of a CAS .Net conflict. Error message below:

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.

Followed MS recommendations and added a CAS configuration file in the Rhino System directory and the error is no longer reported but the component will not load. Visual Studio Shell 2010 is installed to develop WTF IronPython applications and this might be the cause of the conflict.

Followed all other MS recommendations - unblocked the file etc.