Adding Photon3Unity3D to project causes build error

I am getting to errors:

Error ERROR: System.IO.FileLoadException: Could not load file or assembly 'file:///W:\Documents\MMO\MMOClient\Assets\Photon3Unity3D.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) (ERROR: System.IO.FileLoadException: Could not load file or assembly 'file:///W:\Documents\MMO\MMOClient\Assets\Photon3Unity3D.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT) (Assembly-UnityScript-firstpass)

Error File name: 'file:///W:\Documents\MMO\MMOClient\Assets\Photon3Unity3D.dll' ---> 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. (File name: 'file:///W:\Documents\MMO\MMOClient\Assets\Photon3Unity3D.dll' ---> System.NotSupportedException) (Assembly-UnityScript-firstpass)

I dont know how to enable this CAS policy, could anybody help me please?

Comments

  • I think this only happens in Unity 3.5. I just downgraded to 3.4 and this error does not happen.
  • Must be a bug in the beta. I just imported the dll into the latest RC1 and it worked nicely.
    I would expect this to be fixed by Unity.
Sign In or Register to comment.