Вопрос

Я написал утилиту в C #, чтобы скопировать файлы из сетевого каталога в библиотеку документов SharePoint. Когда администратор SYS пытается запустить .exe с сервера Non-SharePoint, он получает следующую ошибку:

Необработанное исключение: system.io.fileNotfoundException: не удалось загрузить файл или сборку microsoft.sharepoint.ciclient, vers ION= 14.0.0.0, культура= нейтральный, PublicHyToken= 71E9BCE111E9429C 'или одна из его зависимостей. Система не может найти F ILE указан. Имя файла: 'microsoft.sharepoint.ciclient, версия= 14.0.0.0, культура= нейтральная, publickyteken= 71E9BCE111E9429C' на spfileupload.program.main ()

WRN: Регистрация связывания монтажа выключается. Чтобы включить регистрацию сбоев сборов в ассамблее, установите значение реестра [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) до 1.

Есть ли способ включить сборку в мой .exe, чтобы она запустилась должным образом?

Редактировать: Я использую SharePoint 2010 Модель клиентского объекта ,

Это было полезно?

Решение

Instructions on how to deploy the SharePoint 2010 Client Object Model assemblies can be found in Client Object Model Distribution and Deployment

Microsoft SharePoint Foundation 2010 installs Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\ISAPI for easy access in development. You must have both Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll to develop a solution remotely with the .NET managed object model. For a Windows Forms, Windows Presentation Foundation (WPF), or other application that calls the .NET managed SharePoint Foundation client APIs, to function, the client computer must have the SharePoint Foundation client DLLs installed. The client DLLs must be distributed with the application by using Microsoft's SharePoint Foundation 2010 Client Object Model Redistributable.

Другие советы

Please Use NuGet Package Manager to add DLLs to your projectenter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top