sharepoint

New-WebServiceProxy failing to authenticate with NTLM

落花浮王杯 提交于 2019-12-22 05:04:39
问题 I'm dealing with a rather peculiar issue. We have a need to hit the Lists service on our SharePoint farm. Web authentication federated through an Oracle SSO, but we do have accounts configured for automation that can perform web requests. Using AAM, we have an "internal" URL configured for server side automation that bypasses directly to AD, and everything else gets pushed to the SSO. Here's the code (sanitized) that I'm using to try to get the list collection. $username = "DOMAIN\username"

ASMX webservice not returning JSON, can only POST using application/x-www-form-urlencoded contentType

蓝咒 提交于 2019-12-22 04:34:06
问题 I can call my webservice using jQuery IF the contentType = "application/x-www-form-urlencoded; charset=utf-8" This will, however, return the xml: <string>[myjson]</string> If I try to POST to the service using "application/json; charset=utf-8" I receive a 500 error with an empty StackTrace and ExceptionType. My webservice function is never hit so I'm not quite sure how to debug this situation. My methods and classes are decorated with the appropriate attributes and are set to use JSON as

How to reference to multiple version assembly

故事扮演 提交于 2019-12-22 01:27:11
问题 I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification to the AJAX library to make it behave like it normally should. The problem is, the other team already use AJAX library and it is a different version with mine. This cause conflict because there could be only one dll in the bin folder with the same name. From what I know, .NET should be able to

Create Sharepoint List which has gantt view - programmatically

喜你入骨 提交于 2019-12-22 00:35:34
问题 I am new to sharepoint therefore don't know much - any help would be highly appreciated. Basically i want to programatically (in the same project) :- 1. create a List and make it a Gantt View 2. Add add appropriate cololumns (that would generate the Gantt chart) to the List 3. And finally i would like to add values/data to the coloums created via this code too... If there is a sample code or any tutorial...please any help would be much appreciated please thank you so much 回答1: Try this: using

Trying to upload files to subfolder in Sharepoint Online via Powershell

笑着哭i 提交于 2019-12-22 00:27:57
问题 I am new to Powershell and I am trying to upload files from a local folder into Sharepoint online. I seem to get the files into the library, but not into the second subfolder where i want them. Script so far: #Specify tenant admin and site URL $User = "admin@contoso.no" $SiteURL = "https://contoso.sharepoint.com" $Folder = "E:\LocalFolder" $DocLibName = "Libraryname" $FolderName = "Folder/SubFolder" #Add references to SharePoint client assemblies and authenticate to Office 365 site – required

Internet Explorer markup errors when using Google Feed API in master page

≡放荡痞女 提交于 2019-12-22 00:20:09
问题 I'm using Google Feed API to display an RSS-feed on a customers SharePoint intranet, which works perfect with Chrome, Firefox and other modern browsers. The exception is of course Internet Explorer, both 10 and 11 which we've committed to support. The feed is shown only some times, but the errors thrown in the developer console of IE10 or IE11 are always thrown, even when the feed is displayed. I reference the jsapi source as Google suggests, with a regular <script> tag like <script type=

How to embed shiny app on SharePoint with Iframe tag

泄露秘密 提交于 2019-12-21 22:01:25
问题 I have a very simple app showing some data. How do you embed this in a SharePoint site using using iframe ? or is there an easier way to do this ? library(ggplot2) library(shiny) library(DT) library(readr) PRTypeCount <- read_csv("H:/SP/PRTypeCount.txt") ui <- navbarPage( title = 'PRTypeCount', tabPanel('PRTypeCount', DT::dataTableOutput('PRTypeCount'))) server<-function(input, output) { output$PRTypeCount <- DT::renderDataTable( DT::datatable(PRTypeCount, options = list(pageLength = 25)) ) }

How to embed shiny app on SharePoint with Iframe tag

﹥>﹥吖頭↗ 提交于 2019-12-21 21:50:17
问题 I have a very simple app showing some data. How do you embed this in a SharePoint site using using iframe ? or is there an easier way to do this ? library(ggplot2) library(shiny) library(DT) library(readr) PRTypeCount <- read_csv("H:/SP/PRTypeCount.txt") ui <- navbarPage( title = 'PRTypeCount', tabPanel('PRTypeCount', DT::dataTableOutput('PRTypeCount'))) server<-function(input, output) { output$PRTypeCount <- DT::renderDataTable( DT::datatable(PRTypeCount, options = list(pageLength = 25)) ) }

Howto get SharePoint version using object model

旧巷老猫 提交于 2019-12-21 21:38:34
问题 With WSSv2 (SharePoint 2003) you could get the version of SharePoint you were working with e.g. SPGloablAdmin.Version gives you "12.0.0.6219" for WSSv3 SP1 However its now obsolete (although still works). Does anyone know the WSSv3 (SharePoint 2007) equivalent? You have things like SPWebService.ContentService.Version but that version number is just a timestamp and doesn't seem to relate back to build versions. 回答1: SPFarm.Local.BuildVersion would probably give you the same result without

ASP.NET - temporarily impersonate the app pool service ID when default it to impersonate the user?

岁酱吖の 提交于 2019-12-21 21:18:09
问题 I have to call some code in a SharePoint site that runs under the same service ID that the web application is running under. By default, SharePoint impersonates the user viewing the web page, and the users don't have the necessary permissions. What is the best way to run some code using the web application's service ID, then revert back to using the default impersonation? 回答1: SPSecurity.RunWithElevatedPrivileges 回答2: Nat is right. You should use SPSecurity.RunWithElevatedPrivileges. Under