博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Could not load the sandbox dll from the ASP.NET project
阅读量:6708 次
发布时间:2019-06-25

本文共 859 字,大约阅读时间需要 2 分钟。

Could not load the sandbox dll from the ASP.NET project

By

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.

Could not load file or assembly ‘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 to the Post – build event command line of the Build Events for this project.

cd $(TargetDir)

del Microsoft.SharePoint.SandBox.dll

转载于:https://www.cnblogs.com/ahghy/archive/2013/02/04/2892147.html

你可能感兴趣的文章
杭电oj2081、2091、1004、2057
查看>>
Carbondata源码系列(一)文件生成过程
查看>>
处理器架构
查看>>
Windows学习总结(9)——Windows系统常用的网络控制指令
查看>>
创建mysql数据库
查看>>
CONTINUE...?
查看>>
C++对象模型之默认构造函数
查看>>
读书笔记五
查看>>
python发送邮件
查看>>
MYSQL 命令大全
查看>>
关于RTP负载类型及时间戳介绍
查看>>
下载软件的网站
查看>>
js中的bind方法和函数中成员
查看>>
SpringMVC的学习
查看>>
【Todo】深入PHP内核系列
查看>>
hdu 4664 Triangulation(题意已在讨论版中说明)
查看>>
二叉树
查看>>
css3-11 如何改变背景图片的大小和位置
查看>>
Dcloud课程9 天气小助手如何实现
查看>>
如何实现无刷新图片上传
查看>>