Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [provider-hosted-app]

A SharePoint 2013 App that is not hosted in SharePoint, but rather by the developer of the app. This hosting is not necessarily done in SharePoint.

15
votes
3answers
29k views

Getting 401/403 in High Trust App for Sharepoint 2013

I have this Cloudshare environment consisting on 3 machines: One for Sharepoint 2013 (this is where I develop with VS2012 installed) Another for SQL Server 2012 And another for Active Directory I'm ...
10
votes
3answers
13k views

Get the ID and Name from multiple Client side People pickers to store in a list

I have a form which contains 3 client side people pickers, i use the following JS to produce the People Pickers // Render and initialize the client-side People Picker function initializePeoplePicker(...
10
votes
2answers
296 views

Searching for pages in SharePoint online 2013

Pages are not getting filtered based on the search criteria in SharePoint Search Online 2013, Provider Hosted App. Reference for HandleBars It shows all the results. Below is the search bar and ...
9
votes
1answer
325 views

How to change hosting server for SharePoint Provider Hosted Apps without disturbing the existing users?

I have created a Provider Hosted App for SharePoint Online. I used Azure hosting server to host my app business logic. Now, somehow I want to move my Hosting server from Azure to another domain. But ...
8
votes
1answer
5k views

Interview Questions on SharePoint Apps which I could not answer [closed]

Question was : Where does the code lies for Provider Hosted App? does it lie in SharePoint server? if not can we make them lie in SharePoint server. How should we call the web services for Provider ...
8
votes
1answer
448 views

Sharepoint App Secret Expiration

My actual question is block-quoted below, but read on for context. When you use AppRegNew.aspx to setup app credentials for provider-hosted apps the secret expires (by default) after 1 year. This ...
7
votes
1answer
1k views

Can't install app in AppCatalog

Trying to upload an app to a Sharepoint Online App Catalog. Getting the following error: xxxxxxxx.app Unknown Status Module: 33 Message: 134 It worked 4 days ago. The only thing that I have ...
7
votes
1answer
2k views

Can you create a multitenant provider hosted app without using the office store?

Stackexchange says this is a subjective question but I don't think it is. I am just trying to discover feasibility here. After a lot of reading online, I was able to successfully convert an app that ...
7
votes
2answers
2k views

Debugging remote event receiver - no context token

I am trying to use the MS supplied BasicDataOperations provider hosted app to play around with and learn about remote event receivers. I was following the instructions from this blog post by Chris O'...
6
votes
1answer
2k views

Angular 2 with SharePoint provider hosted app

I have one requirement to create SharePoint Provider hosted app with Angular 2. I have beginner level knowledge about SharePoint app with Angular2. I have created one SharePoint Provider hosted app ...
6
votes
1answer
399 views

Custom ribbon button does not deploy using tenant scope app deployment

I am deploying custom ribbon button using SharePoint provider hosted app. It creates ribbon button without any issues when I deploy to the site manually (app scope). But it does not create a ribbon ...
6
votes
1answer
1k views

How to prevent appredirect.aspx from being in the browser history

We have a provider hosted web part on our page layout. When a user visits any page they cannot use the back button, when they try it redirects back to the current page. The web part is hosted in an ...
6
votes
1answer
3k views

Login from High-Trusted SharePoint Provider Hosted App using FBA

I created a sharepoint provider hosted app (high-trusted app) that uses an asp .net membership provider customized to use an external service. I configured the sharepoint web application to use the ...
6
votes
0answers
305 views

How to set HTML field security using CSOM

Is there a way to set the HTML field security using CSOM? I already found a way to use PowerShell Scripts but i wondering if there is also a way to use CSOM. PowerShell: $web.ScriptSafeDomains.Add("...
6
votes
0answers
771 views

SharePointContextProvider.Current.GetSharePointContext(Context) returns null on postback - provider hosted app

I have a provider hosted app hosted on Azure and installed in SharePoint Online (Office 365). While testing the app, I found a strange issue, where if the page remains idle for around 10 mins and then ...
6
votes
1answer
2k views

SharePoint App - Custom ribbon button enable/disable

I am deploying custom ribbon button using SharePoint provider hosted app. I was able to show button where I wanted but not able to control enable or disable state of the button. It remains active ...
5
votes
3answers
223 views

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

I started a new sharepoint 2013 enterprise server on-premise project for a customer, and on the first phase I want to do the following which requires me to create 2 farm solutions:- I need to add ...
5
votes
2answers
895 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...
5
votes
3answers
5k views

How to pass Query String to Provider Hosted App in SharePoint 2013

I need to pass a query string to provider hosted app in SharePoint 2013 Online
5
votes
1answer
1k views

Sharepoint provider hosted app Microsoft.SharePoint.Client.File.OpenBinaryDirect does not work

I am trying to do. Microsoft.SharePoint.Client.File.OpenBinaryDirect(context,relativeUrl) Always get "forbidden" and unauthorized. However If i use same context and url to do web....
5
votes
2answers
214 views

Cannot publish my SharePoint MVC app project in VS

I created in VS2015 a new App. VS will create automatically an app project and an MVC web project. Inside my MVC web project I have an template xml file as follow: <?xml version="1.0"?> <pnp:...
5
votes
2answers
669 views

SharePoint Add-in - Modify App Domain Name

I have come across situation where I need to change App domain name which we set in early steps of configuring environment for SharePoint add-in while creating isolated app domain. I read somewhere (...
5
votes
1answer
401 views

Is a ClientId and Certificate always needed for a Microsoft SharePoint Provider hosted app?

I do not understand the following thing in SharePoint Provider Hosted Add-In development: When you create a SharePoint Provider Hosted Add-In you create a ClientId/-Secret and also for High Trust ...
5
votes
2answers
889 views

Is there a way to dynamically configure the remote webapp url of a provider-hosted SharePoint app?

In our scenario we are developing a provider-hosted app for SharePoint 2013. For each on-premise SharePoint installation there will be a separate (remote) web application with a different URL. Hence, ...
5
votes
3answers
447 views

How do I give permission to app using CSOM?

I have a workflow in my subsite that is available when I activate a feature. The workflow has app step and also the workflow running on my list at subsite updates a list on my root site. To do so I ...
5
votes
0answers
45 views

The Client ID submitted in your add-in package does not match the Client ID submitted via the Seller Dashboard

I have registered my Provider Hosted Add-in to Microsoft Seller Dashboard. Microsoft has send back a report with this error: The Client ID submitted in your add-in package does not match the ...
4
votes
3answers
27k views

Retrieve list item using CSOM on SharePoint online isn't working

I've been stuck on this problem for couple days, I develop app model on SharePoint online using provider hosted model. From clientwebpart, i want to access sharepoint list item. I can access list ...
4
votes
1answer
1k views

SharePointContextProvider not found when Creating a provider hosted app with VS2015

I try to create a provider hosted app (MVC) with VS2015. I use the standard template-approach like described there: http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/ (Or many ...
4
votes
2answers
64 views

SharePoint hosted app within the Host Web

I have created a nice little SharePoint hosted app. When I launch the app, it brings me to the app domain and a dedicated page (default.aspx). My question is, how do I embed this App within my Host ...
4
votes
1answer
604 views

How to implement Remote event receiver in sharepoint online?

How to implement Remote event receiver in SharePoint online using provider hosted app and how to configure service bus for debugging remote event receiver in provider hosted app?
4
votes
1answer
1k views

What permissions are needed to Create Groups and Add users to Groups?

I am currently developing a SharePoint Provider-hosted-Add-In which should be run on O365. I added FullControl to the SiteCollection and Web and everything worked fine. FullControl is not allowed, ...
4
votes
1answer
775 views

Get current logged in user in provider hosted app

I have to get current logged in user in provider hosted app event receiver. I used the below code to get the current user name, but I got current user name as Sharepoint App instead of Current ...
4
votes
1answer
319 views

Create result source with CSOM

I am looking for a way to actually create a result source with C# CSOM. I only find examples where I specify an existing result source like this answer. I am developing a SharePoint provider hosted ...
4
votes
1answer
1k views

How to reference JavaScript file in custom ribbon action in SharePoint Online App?

I am trying to call JavaScript function into my Custom Ribbon command. I was able to create my Custom Ribbon Action using this answer. This perfectly worked for me in creation of Custom Ribbon Action ...
4
votes
1answer
1k views

Enable External Sharing Programmatically

We have a scenario on which we are creating site collections from a provider-hosted app. Some of these site collections will be used by external users. Is there a way from CSOM (server-side) to enable ...
4
votes
2answers
3k views

Problem storing SharePoint context in Provider hosted app hosted in a azure website

I created a provider hosted app, which I want to deploy in a azure website. The problem that I'm currently facing is that I don't have a SharePointContext after postback. I'm using the default way to ...
4
votes
2answers
239 views

Deploy Provider Hosted App

I have tried deploy hosted app but always appear error message like "Error 1 Error occurred in deployment step 'Install app for SharePoint': The provided App differs from another App with the ...
4
votes
2answers
4k views

Retrieving list Items programmatically from CAML via Client Side object Model when a Document Library has more than 5000 items

I have a SharePoint provider hosted app that stores documents with metadata in a Single Document Libraray programmatically via CSOM. I have a requirement to display the list items in a MVC web app ...
4
votes
2answers
3k views

How to add Client Web Part to .aspx page programmatically in SharePoint provider hosted app?

I have requirement to add Client Web Part to .aspx page programmatically in SharePoint provider hosted app, I have tried this link, but this is for SharePoint hosted app, below code is not working for ...
4
votes
2answers
9k views

Using TokenHelper from backend with refresh tokens and app only access

I'm trying to implement a provider hosted app with the purpose of adding list items to sharepoint online sites from a scheduled job (console app) or windows service. So I've created a provider hosted ...
4
votes
1answer
2k views

Large file upload using CSOM for provider hosted app (user + app policy)

I m trying to upload large file using CSOM code. Code is throwing the following error - Specified argument was out of the range of valid values. Parameter name: bytesToCopy clientContext....
4
votes
1answer
327 views

Conflicting permission in provider hosted apps

I am stuck in a weird issue. I have a provider hosted app which needs to be deployed in MySite of users. This app is requesting for 2 permissions: Full Control on Web (which only user can approve) ...
4
votes
1answer
1k views

AppRedirect.aspx to SharePoint App pages - Authentication

We're currently developing an SharePoint Online app that is hosted in Azure. We can navigate to the app via the Site Contents of the page and loads correctly. What we would ideally like is to be able ...
4
votes
2answers
1k views

Update 'created by' & 'modified by' values using CSOM in provider hosted app does not work

I have a provider hosted app. I am using app only permissions to upload and edit files in a document library. I have a requirement to update the 'Created by' & 'Modified by' values once file is ...
4
votes
2answers
2k views

Error while installing SharePoint Provider hosted app “”The remote event receiver callout failed."

We have developed a provider hosted app by pointing to SharePoint online which holds a simple logic in the app installed event. The remote web component of the app is deployed to an on-permises ...
4
votes
0answers
538 views

Remote Event Receivers not firing in case of Service to Service authentication scenario using Azure AD

I have created a SharePoint app(Add in) with a RemoteEventReceiver subscribed to Item Added Event on a custom list. After installing app in office 365 I can log into portal and add item to list and it ...
4
votes
0answers
511 views

Httpcontext.session is null in Provider hosted app

I have a on premise provider hosted app and when i publish the web part on my local IIS server and uploading the app file to app catalogue and trying to access the default page, I am getting ...
3
votes
2answers
6k views

How to attach files to list item using Client Object Model?

I have a SharePoint List to which I am adding new ListItems using the Client Object Model. Adding ListItems is not a problem and works great. How to add Attachments?
3
votes
3answers
605 views

Why is my app's UninstallingEventEndpoint never invoked during app removal?

I have a Provider-Hosted SharePoint app with an appmanifest.xml that looks something like this: <Properties> <Title>My app title</Title> <StartPage> ~remoteAppUrl/home/...
3
votes
3answers
2k views

Why does my SharePoint Add-in's Id change every time I build and debug it from Visual Studio?

In Visual Studio 2015 I have created a new solution based on the "SharePoint Add-in" template. As I have chosen to make it a provider-hosted add-in I have two projects created: sharepoint-addin and ...