1

我們希望爲我們的SharePoint用戶提供一個托盤Windows應用程序,它們不能與ms-access視圖或SharePoint工作區一起工作......(此程序應提醒員工使用我們的自定義提醒,並且他們需要自定義的小用戶這些終端用戶的接口。)開發Sharepoint Windows Forms

我使用這個article和這個article,並寫了一個簡單的代碼爲這個解決方案的可行性。但是在構建之後,這個客戶端應用程序似乎只能在該開發服務器上工作。

我們在Windows 7上試過它,並且在24次之後,它需要下面列表中的dll。

Microsoft.BusinessData.dll 
Microsoft.HtmlTrans.Interface.dll 
Microsoft.IdentityModel.dll 
Microsoft.Internal.Mime.dll 
Microsoft.SharePoint.AdministrationOperation.dll 
Microsoft.SharePoint.Client.dll 
Microsoft.SharePoint.Client.Runtime.dll 
Microsoft.SharePoint.Client.ServerRuntime.dll 
Microsoft.SharePoint.Diagnostics.dll 
Microsoft.SharePoint.dll 
Microsoft.SharePoint.Dsp.dll 
Microsoft.SharePoint.Library.dll 
Microsoft.SharePoint.PowerShell.dll 
Microsoft.Sharepoint.Sandbox.dll 
Microsoft.SharePoint.Search.dll 
Microsoft.SharePoint.Security.dll 
Microsoft.SharePoint.xml 
Microsoft.Web.Administration.dll 
Microsoft.Web.CommandUI.dll 
Microsoft.Web.Design.Server.dll 

還有另一個dll。

Microsoft.sharepoint.intl.dll 

Microsoft.SharePoint.CoreResource 

'Microsoft.SharePoint.CoreResource不存在於Windows 2008 SharePoint Server 2010 dev server中。

我知道這不是標準的部署方式,我想更多地瞭解有關在客戶端上部署和開發它的標準方法。

我知道我的服務器應該有sharepoint 2010 64位,但我的客戶端是Windows 7 32-bt。這是我的問題嗎?

回答

2

如果您在非SharePoint服務器上運行應用程序,則不能使用服務器對象模型,只能使用Client對象模型。 服務器對象模型僅適用於服務器。

請查看second link 您只需引用Microsoft.SharePoint.Client DLL。