Encountered a strange problem, cocould not load the assembly file XXX downloaded from the Web, assemblydownloaded
After compilation, I did not pass it to the client and reported cocould not load the assembly file: // xxx. dll,
After reading some documents, I found that it was a file security problem because after I compressed and packed the file,
Put it on the online disk and ask the other party to download the file. After the other Party downloads the file, VS considers the file downloaded from the internet as insecure,
Solution: Close VS and right-click the problematic DLL to UNBLOCK the file,
Open VS again and compile it. There is also a small trick: if you are a package file,
UNBLOCK and oh no are required for all the DLL files after decompression. This is the rhythm of death,
But, you can right-click the compressed package and UNBLOCK it, so there will be no problems with the decompressed project,
For details, see: https://msdn.microsoft.com/en-us/library/ee890038 (VS.100). aspx
You can also see: http://stackoverflow.com/questions/3072359/unblocking-a-dll-on-a-company-machine-how
There are other solutions on stackoverflow, but the core issue is security, UNBLOCK