Frage

Ich habe ein Dienstprogramm in C # geschrieben, um Dateien aus einem Netzwerkverzeichnis in eine SharePoint-Dokumentbibliothek zu kopieren. Wenn der SYS-Administrator versucht, die .exe von einem nicht-SharePoint-Server auszuführen, erhält er den folgenden Fehler:

Ausnahmedonus: System.IO.FILENOTFOUNDException: Die Datei oder der Montage 'Microsoft.Sharepoint.Client, Vers können nicht geladen werden Ion= 14.0.0.0, Kultur= Neutral, PublutKeyToken= 71E9BCE111E9429C 'oder eines der Abhängigkeiten. Das System kann das f nicht finden ile angegeben. Dateiname: 'Microsoft.Sharepoint.Client, Version= 14.0.0.0, Kultur= Neutral, PublutschlüsselStoken= 71E9BCE111E9429C' bei spfileupload.program.main ()

wrn: Montagebindungsprotokollierung ist ausgeschaltet. Um die Montagebindungsfehlerprotokollierung zu aktivieren, setzen Sie den Registrierungswert [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) auf 1.

Gibt es eine Möglichkeit, die Montage in meine .exe aufzunehmen, damit sie ordnungsgemäß ausgeführt wird?

edit: Ich benutze den SharePoint 2010 Client-Objektmodell .

War es hilfreich?

Lösung

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.

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top