Cocould not load the sandbox DLL from the ASP. NET Project

Source: Internet
Author: User
Cocould not load the sandbox DLL from the ASP. NET Project

By Louis Liang

Got the following error, when I used the SharePoint DLL in an ASP. NET project. vs2010 puts the sandbox assembly into the bin folder automatically.

Cocould not load file or assembly â € into Microsoft. sharepoint. sandbox, version = 14.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c â € or one of its dependencies. an attempt was made to load a program with an incorrect format.

To fix the error, just delete the sandbox DLL from the bin folder directly, but it is just temporary solution, vs2010 will create the DLL again each time you do a build.

The final solution for me is to add the following commands toPost â € "build event command lineOfBuild EventsFor this project.

CD $ (targetdir)

Del Microsoft. Sharepoint. sandbox. dll

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.