C# 无法加载文件或程序集“Microsoft.SharePoint.Library" [英] C# Could not load file or assembly 'Microsoft.SharePoint.Library'

查看:18
本文介绍了C# 无法加载文件或程序集“Microsoft.SharePoint.Library"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 64 位版本的 Windows 7 上开发,运行 MOSS (SharePoint),这是我的开发机器.

I am developing on a 64bit version of Windows 7, running MOSS (SharePoint), this is my dev machine.

现在,当我将 Web 服务应用程序部署到测试服务器 Windows 2003 32 位(未安装 Sharepoint)时,出现此错误.

Now when I deploy my web service app to a test server Windows 2003 32bit (no Sharepoint installed) I get this error.

无法加载文件或程序集Microsoft.SharePoint.Library,版本=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"或其依赖项之一.系统找不到指定的文件

Could not load file or assembly 'Microsoft.SharePoint.Library, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified

DLL 已明确复制到 bin 目录 (Microsoft.Sharepoint.dll).

The DLL has clearly been copied to the bin directory (Microsoft.Sharepoint.dll).

有什么想法吗?

推荐答案

如果您使用的是 sharepoint dll,它只能在安装了 sharepoint 的机器上运行.

If you are using sharepoint dll's it will only work on a machine with sharepoint installed.

即使你设法破解它并让它工作,你也可能违反了许可协议.

Even if you managed to hack it and get it to work, you would probably be breaking a license agreement.

这篇关于C# 无法加载文件或程序集“Microsoft.SharePoint.Library"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆