Wednesday, April 17, 2013

.Net - Solved - How to load assembly without error

Sometimes we will get error message like below

Could not load the assembly file://\assemblypath/assemblyname.dll. This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.

To solve this issue right click the assembly dll and click unblock