When moving you assemblies from place to place it can happen that the assembly become marked by Windows as “unsafe” one. In this case the assembly will fail the build process with following error:
Error 1 Could not load the assembly file:///C:\Temp\blabla.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 make this working, locate the assembly on the local disk where it is referenced from, open file properties and unlock it:
After unblock it should look like:
Posted
Aug 17 2011, 11:51 PM
by
Damir Dobric