Could not load the sandbox dll from the ASP.NET project
2013-02-04 18:31
736 查看
Could not load the sandbox dll from the ASP.NET project
By Louis LiangGot 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
相关文章推荐
- from scipy import spatial 出现 from .qhull import * ImportError: DLL load failed: The specified module could not be found. 错误
- ios xcode Could not load the "MyImage.png" image referenced from a nib in the bundle with identifier "com.mytest.MyProject"
- Could not load the "XX.jpg" image referenced from a nib in the bundle with identifier "cn.Norm"
- xamarian studio 创建asp.net mvc razor project 报错:Could not locate Razor Host Factory type: System.We
- .NET Web 执行错误Could not load type '...' from assembly '..., Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because the me
- Spring.net Could not load type from string value
- NU1002 The dependency Microsoft.AspNet.Mvc 5.2.3 in project dotnetstarter does not support framework
- 服务器端安装ASP.NET运行环境错误Failed to execute request because the App-Domain could not be created. Error: 0x80131902
- Asp.Net 关于Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e
- Could not load the "logo.png" image referenced from a nib in the bundle with identifier
- Could not load definitions from resource net/sf/antcontrib/antcontrib.properties.
- image asset:Could not load the "scene" image referenced from a nib in the bundle with identifier
- “Can not load DLL“.\ADTVR_Live.dll”: Can not find the module. (Exception From HRESULT:0x8007007E)。
- Could not load project* from super dev mode server when deployed to weblogic/jboss/tomcat?
- ASP.NET Parser Error Message: Could not load type 'Web.Global'.
- 错误代码: Could not load the "XXX.png" image referenced from a nib in the bundle with identifier "XXX"
- ios xcode Could not load the "MyImage.png" image referenced from a nib in the bundle with identifier
- Could not load the "" image referenced from a nib in the bundle with identifier "com.****.***
- Ajax.net 错误 Could not load type 'Microsoft.Web.Extensions.Design.Dll'解决方法.
- 解决eclipse启动tomcat报错:Could not load the Tomcat server configuration at \Servers\Tomcat v6.0 Server at localhost-config. The Servers project is closed.