.net - Load assembly from network location -


I am trying to load the assembly:

  assembly component = assembly Load (component path);   

Where componentPath is the complete path to the network location and get the following error:

An assembly was attempted to load a The network location that caused the assembly to be brought to the sandbox in previous versions of the .NET Framework. This release of .NET Framework does not enable CAS policy by default, so this load may be dangerous.

If this load is not intended for sandbox assembly, please enable the load switch switch to the limit. For more information see.

What can you do to avoid this security check?

Thanks

Read on to get an idea.
Also read. Blog on .NET Security

Comments