System.IO.FileLoadException:无法加载文件或程序集"Microsoft.SharePoint.Client,版本= 14.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.找到的程序集的清单定义与assemb不匹配 [英] System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assemb
问题描述
大家好,
当我发布代码并部署到另一台服务器上时,出现错误提示.它可以在我的本地计算机上工作.
I am getting below error when i publish my code and deploy on another server. Its working on my Local Machine.
System.IO.FileLoadException:无法加载文件或程序集"Microsoft.SharePoint.Client,版本= 14.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.找到的程序集的清单定义与程序集不匹配
参考. (来自HRESULT的异常:0x80131040)
文件名:"Microsoft.SharePoint.Client,版本= 14.0.0.0,区域性=中性,PublicKeyToken = 71e9bce111e9429c"
在Portal.Domain.SPRepo.GetDocumentLibraryContents中(字符串documentLibTitle,字符串路径,Func`2过滤器)
位于Portal.Domain.DataServices.DataServiceClient.GetPublicFolders(SPHItem项目)
位于Portal.Domain.Janrain.JanrainUser.GetMappings(String itemPath)
位于Portal.Controllers.HomeController.Supplier(字符串路径)
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.SharePoint.Client, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at Portal.Domain.SPRepo.GetDocumentLibraryContents(String documentLibTitle, String path, Func`2 filter)
at Portal.Domain.DataServices.DataServiceClient.GetPublicFolders(SPHItem item)
at Portal.Domain.Janrain.JanrainUser.GetMappings(String itemPath)
at Portal.Controllers.HomeController.Supplier(String path)
谢谢
Vivek Pandey
Vivek Pandey
推荐答案
您好,Vivek,
Hi Vivek,
请检查Microsoft.SharePoint.Client.dll和Microsoft.SharePoint.Client.Runtime.dll是否已部署在另一台服务器的GAC中.如果没有,则将这些dll添加到WSP程序包中.
Please check whether Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll are deployed in the GAC of your another server. If not then add those dlls to WSP package.
最好的问候,
丹尼斯
这篇关于System.IO.FileLoadException:无法加载文件或程序集"Microsoft.SharePoint.Client,版本= 14.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.找到的程序集的清单定义与assemb不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!