无法在访问共享点列表的PC上运行控制台应用程序 [英] Can't run a Console application on my PC that accesses a Sharepoint list

查看:98
本文介绍了无法在访问共享点列表的PC上运行控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个控制台应用程序,该应用程序可以访问和更新Sharepoint列表,并且可以在我的开发人员计算机上正常运行,但是我的用户无法在其计算机上运行该程序,并且得到了以下"Microsoft ".Sharepoint.Client"错误信息. 因此,我可以通过下载"Microsoft.Sharepoint.Client"来解决此问题吗?

Hello, i have a Console application that accesses and updates a Sharepoint list and it runs ok on my developer machine, but my users can't run the program on their machines and they're getting the following 'Microsoft.Sharepoint.Client" error message. So can i resolve this my download the 'Microsoft.Sharepoint.Client" onto their machine and if so, where can i/they download this component please? 

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

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

文件名:"Microsoft.SharePoint.Client,版本= 16.0.0.0,区域性=中性,PublicKeyToken = 71e9bce111e9429c"

File name: 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'

  在DERBudgetReport.ProcessSourceFiles.GetSPADlist()

   at DERBudgetReport.ProcessSourceFiles.GetSPADlist()

  在DERBudgetReport.ProcessSourceFiles.RptMain(DateTime parmfrom,DateTime parmto,String inpath)

   at DERBudgetReport.ProcessSourceFiles.RptMain(DateTime parmfrom, DateTime parmto, String inpath)

  在DERBudgetReport.Form1.button1_Click_1(对象发送者,EventArgs e)

   at DERBudgetReport.Form1.button1_Click_1(Object sender, EventArgs e)

  在System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Control.OnClick(EventArgs e)

  在System.Windows.Forms.Button.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnClick(EventArgs e)

  在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

  在System.Windows.Forms.Control.WmMouseUp(消息和m,MouseButtons按钮,Int32单击)上

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

  在System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

  在System.Windows.Forms.ButtonBase.WndProc(Message& m)

   at System.Windows.Forms.ButtonBase.WndProc(Message& m)

  在System.Windows.Forms.Button.WndProc(Message& m)

   at System.Windows.Forms.Button.WndProc(Message& m)

  在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

推荐答案

为dll添加引用时,您是否将 CopyLocal 属性设置为True?  这将确保在安装CSOM SDK时安装在开发箱上的客户端名称空间元素将与控制台应用程序一起复制 当您将其部署到另一个客户端时.  

When adding the reference for the dll did you set the CopyLocal attribute to True?  That will insure that the client namespace elements you installed on your dev box when you installed the CSOM SDK will be copied along with the console app when you deploy it to another client.  


这篇关于无法在访问共享点列表的PC上运行控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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