sharepoint-2013

How to get request digest value from provider hosted app?

安稳与你 提交于 2019-12-02 17:36:12
I am developing SharePoint 2013 Provider hosted app using javascript REST Api. In order to perform create (POST), or update (MERGE) operations on sharepoint items I need to set the 'X-RequestDigest' header with the request. When in SharePoint-hosted apps I was able to use the http://contoso.sharepoint.com/SharePointHostedApp/_api/contextinfo service to retrieve the request digest value; however, I am having trouble getting that value when in a provider hosted app. The first difference of provider hosted app is that now we need to make a cross-domain request since we are not running in a

How can Office Add-in (Task-pane) not display by default

☆樱花仙子☆ 提交于 2019-12-02 12:29:44
问题 I have an Task-pane Office Add-in (https://msdn.microsoft.com/en-us/library/office/fp123523.aspx) on registered Office 365 Site. When the user opens a spreadsheet from a document library on that site, then in edit mode, can use the "Office Add-ins" from the Insert menu to insert my add-in to the Spreadsheet. My add-in helps them population and update data on the spreadsheet. They then save the spreadsheet back with the updated data. Now, the next time they open that spreadsheet, my task-pane

Client object model get item by id error- “Item does not exist. It may have been deleted by another user”

江枫思渺然 提交于 2019-12-02 09:40:13
问题 I am getting error while I try execute get list item by id ClientContext clientContext = TokenHelper.GetClientContextWithAccessToken(sharepointUrl.ToString(), accessToken); Web web = clientContext.Web; clientContext.Load(web); clientContext.ExecuteQuery(); clientContext.Load(web.CurrentUser); clientContext.ExecuteQuery(); currentUser = clientContext.Web.CurrentUser.Title; List _list = web.Lists.GetById(_ListGuid); clientContext.Load(_list); clientContext.ExecuteQuery(); Microsoft.SharePoint

GridView SelectMethod Issue With WebPart Sharepoint 2013

夙愿已清 提交于 2019-12-02 07:34:23
Hi every one , I have a problem with a gridview in webpart sharepoint 2013 ,I use model bind with the gridview and I have assigned a select method to the gridview when I deployed the webpart it raise the following error A public method with the name was either not found or there were multiple methods with the same name on the type x.master thanks alot I have found the solution , you need to register this code within the CallingDataMethod GridView event : protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e) { e.DataMethodsObject =

How can Office Add-in (Task-pane) not display by default

眉间皱痕 提交于 2019-12-02 05:33:56
I have an Task-pane Office Add-in ( https://msdn.microsoft.com/en-us/library/office/fp123523.aspx ) on registered Office 365 Site. When the user opens a spreadsheet from a document library on that site, then in edit mode, can use the "Office Add-ins" from the Insert menu to insert my add-in to the Spreadsheet. My add-in helps them population and update data on the spreadsheet. They then save the spreadsheet back with the updated data. Now, the next time they open that spreadsheet, my task-pane shows up again. Is there any the task pane can not start opened? I would like the user to explicitly

How to embed SharePoint 2013 webparts directly in aspx layout page as default webparts for that layout

五迷三道 提交于 2019-12-01 22:25:15
问题 I am using SharePoint 2013, and have a custom master page and several aspx layout pages all of which to be deployed get copied into the "Master pages and page layouts" section within Site Settings. These aspx pages contain web part zones, but how can I add a web part in the markup of the aspx page, within the web part zone? What I'm essentially trying to do is embedd "Default" webparts into the layout of the page, so that when this layout is chosen for particular page, it already has webparts

New-Object : The term New-Object is not recognized as the name of a cmdlet

社会主义新天地 提交于 2019-12-01 17:34:54
I want to configure high trusted app for app dev in SharePoint, and to do so, i need first to insert some commands in the powershell editor like : $publicCertPath = "C:\Certs\HighTrustSampleCert.cer" $certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($publicCertPath) I am using windows PowerShell on Windows Server 2012 R2 which includes Windows PowerShell 4 that includes by default the new-object cmd-let... I don't understand though, why doesn't my operating system recognize that command ... I don't stop having the following error : New-Object : The term

New-Object : The term New-Object is not recognized as the name of a cmdlet

牧云@^-^@ 提交于 2019-12-01 16:56:15
问题 I want to configure high trusted app for app dev in SharePoint, and to do so, i need first to insert some commands in the powershell editor like : $publicCertPath = "C:\Certs\HighTrustSampleCert.cer" $certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($publicCertPath) I am using windows PowerShell on Windows Server 2012 R2 which includes Windows PowerShell 4 that includes by default the new-object cmd-let... I don't understand though, why doesn't my

Autofac and ASP .Net MVC 4 Web API

北战南征 提交于 2019-12-01 16:22:00
I am using Autofac for IoC in my ASP .Net MVC 4 project. Autofac is having some trouble initializing the repository and passing it to the API Controller . I am sure I am missing something in my configuration. Here is the error I get when I navigate to: https://localhost:44305/api/integration <Error> <Message>An error has occurred.</Message> <ExceptionMessage> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'EL.Web.Controllers.API.IntegrationController' can be invoked with the available services and parameters: Cannot resolve parameter

Several Azure AD. New-MsolServicePrincipal : Access Denied

微笑、不失礼 提交于 2019-12-01 11:00:28
I want to set my Azure Active Directory as an identity provider for SharePoint 2013 Foundation. I activated Azure trial from account that is a part of another infrastructure (my company's infrastructure). So what i have now: Azure VM with SharePoint 2013 Foundation installed. Created by me for testing purposes Azure Active Directory that is a part of my company's infrastructure. I don't have any permissions even to view it. But I see it since my company uses it Azure Active Directory with me as Global Admin (my-ad-name). Created by me for testing purposes Access Control Services. Created by me