Encountered a strange problem, cocould not load the assembly file XXX downloaded from the Web, assemblydownloaded

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.