문제

i는 C #에 유틸리티를 작성하여 네트워크 디렉토리에서 SharePoint 문서 라이브러리로 파일을 복사합니다. SYS 관리자가 비 SharePoint 서버에서 .exe를 실행하려고하면 다음 오류가 발생합니다.

처리되지 않은 예외 : System.IO.FileNotFoundException : 파일 또는 어셈블리 'Microsoft.SharePoint.Client, Vers를로드 할 수 없음 이온= 14.0.0.0, 문화= 중립, publickeytoken= 71E9BCE111E9429C '또는 그 종속성 중 하나. 시스템은 F를 찾을 수 없습니다 ILE가 지정되었습니다. 파일 이름 : 'Microsoft.SharePoint.Client, 버전= 14.0.0.0, 문화= 중립적 인 PublicKeyToken= 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