sharepoint

Error running ps1 from c# code (Office 365)

喜夏-厌秋 提交于 2019-12-25 02:13:43
问题 When creating the sharepoint site using ps1 file from C# code in office365. This error is coming The 'connect-sposervice' command was found in the module 'Microsoft.Online.SharePoint.PowerShell', but the module could not be loaded. For more information, run 'Import-Module Microsoft.Online.SharePoint.PowerShell'. Running the ps1 directly in powershell is giving the desired result, but not working properly using c# code 回答1: I had the same problem and solve it this way: Locate file C:\Program

Error running ps1 from c# code (Office 365)

落爺英雄遲暮 提交于 2019-12-25 02:11:50
问题 When creating the sharepoint site using ps1 file from C# code in office365. This error is coming The 'connect-sposervice' command was found in the module 'Microsoft.Online.SharePoint.PowerShell', but the module could not be loaded. For more information, run 'Import-Module Microsoft.Online.SharePoint.PowerShell'. Running the ps1 directly in powershell is giving the desired result, but not working properly using c# code 回答1: I had the same problem and solve it this way: Locate file C:\Program

Filenotfound exception while opening an SPSite object - x64

烈酒焚心 提交于 2019-12-25 01:44:14
问题 I've created a simple asp.net application to open a site and display the title of the corresponding web. But i'm getting FileNotFoundException while trying to open the site. The same code works perfectly when i run it in a console app. My spec Windows Server 2008 R2 x64, SharePoint 2007 x64, Visual Studio 2005 My target for the asp.net app is set to 'Any CPU'. As far as permissions is considered i've checked that the current identity using under which VS2005 hosts the asp.net app is having

Pulling Excel.xlsx workbook from Sharepoint site using Microsoft Graph API

断了今生、忘了曾经 提交于 2019-12-25 01:43:49
问题 As stated in the title, I've been trying to use the Microsoft Graph API to pull an Excel workbook from our company's Sharepoint site. I am able to retrieve the metadata for the file, but when I add the /workbook/ segment to the URL, I receive the below error: { "error": { "code": "BadRequest", "message": "Resource not found for the segment 'workbook'.", "innerError": { "request-id": "bf41e41a-bc01-4c3b-b1d7-3125c4d48124", "date": "2019-04-10T16:29:07" } } } Here is what the successful call

Infopath FileQueryConnection.Execute(XpathNavigator) throws System.Net.WebException: Attempted to read or write protected memory

♀尐吖头ヾ 提交于 2019-12-25 01:40:29
问题 I have this code inside a field changed event of a browser enabled infopath form 2007 - try { XmlDocument outputFile = new XmlDocument(); FileQueryConnection con = (FileQueryConnection)DataConnections["connection1"]; con.FileLocation = @"http://server_name/_vti_bin/owssvr.dll" + "?Cmd=Display&List={List_ID}" + "&XMLDATA=TRUE&View={View_ID}&Query=*" + "&FilterField1=Country_x0020_Name&FilterValue1=" + country.Replace("&","%26"); outputFile.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\" ?>

How to solve this error “Could not load file or assembely 'System.Dynamic' or one of its dependencies”

邮差的信 提交于 2019-12-25 01:28:51
问题 I am working on a .Net project 3.5 frame work (Sharepoint server) My project is working fine but when I deployed the wsp of the following solution in another machine having same configuration and 3.5 .NET Framework and all similar setting to that of my machine I am getting this error: Could not load file or assembly 'System.Dynamic' or one of its dependencies I have added all the DLLs which is in my project. whereas the same code /project is running well and good in my machine. How can I add

How to deploy officeJS addin on office online on-premise server?

十年热恋 提交于 2019-12-25 00:37:36
问题 I have written a small officeJS addin for excel which run perfectly on desktop excel client. Also office online from onedrive gives an option of installing the addin from the ribbon menu. I want to use this officeJS addin to run on either of the following configuration: On premise office online server configured with on premise sharepoint server. On premise office online server with my own implementation of wopi host. How to deploy an officeJS addin on office online on premise server which is

How to update SharePoint feature?

跟風遠走 提交于 2019-12-25 00:35:37
问题 I've created and installed a custom Document Library as a feature to SharePoint (WSS3) installation. The installation and activation went fine and the feature is operational. However, now I need to change the feature schema.xml file but I can't find a way to update the changes to SharePoint. I guess it's done via the stsadm.exe tool but can't find documentation on how to actually perform the update. Is there a simple to command to update the feature with FeatureId or name? Or do I need to

Why does my SharePoint workflow fail when the client is running Vista or Windows 7?

◇◆丶佛笑我妖孽 提交于 2019-12-25 00:33:52
问题 I have a similar situation to this question. I have a custom sequential SharePoint workflow, deleoped in Visual Studio 2008. It is associated with an InfoPath form submitted to a form library. It is configured to automatically start when an item is created. It works sometimes. Sometimes it just fails to start. Just like the question linked above, I checked in the debugger, and the issue is that the InfoPath fields published as columns in the library are empty when the workflow fires. (I

How to update an image url field in SharePoint list using REST

◇◆丶佛笑我妖孽 提交于 2019-12-24 23:29:03
问题 I have a SharePoint list (let's call it 'Employee') and I am using jQuery and REST to read and write properties on that list. If I want to update e.g. an int property (let's call it 'EmployeeAge'), it's quite straightforward: jQuery.ajax({ url: myUrl, type: "POST", data: JSON.stringify({ '__metadata': { 'type': 'SP.Data.EmployeeListItem' }, 'EmployeeAge': age }), headers: { "accept": "application/json;odata=verbose", "content-type": "application/json;odata=verbose", "content-length": 0, "X