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

Hi,
 
Today we have deployed some of our .exe’s and dlls on the server and when we ran the .exe we were getting the below exception.
 
“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”
 
I did check the .net versions and found all the things are absolutely fine. After sometime, came to know that the dll was blocked on the server.

 
To unblock the DLL or EXE,
 
Right click on DLL or EXE –> choose Properties –> click the Unblock button –> Apply and Ok.
 
The reason behind this blocking is normally operating system will blocks the DLL if it is copied from a network location because of security reasons.
 
Hope this helps.
 

Cheers,

Gopinath

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s