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.

6
votes
0answers
302 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
767 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 ...
5
votes
0answers
42 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
0answers
535 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
508 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
0answers
64 views

How to restrict the Provider Hosted App installation on subsite?

I have created a Provider Hosted App for SharePoint On-Premises and SharePoint Online. My requirement is that this app should only installed if its a Site Collection. If it is a Site within a Site ...
3
votes
0answers
370 views

Get list of Azure Active Directory Client Users in provider hosted app SharePoint online

I am trying to get Azure active directory users from provider hosted app with following code: private void bindUsers() { ActiveDirectoryClient client = AuthenticationHelper....
3
votes
0answers
331 views

Expose Internal Web Service To SharePoint Online

I have several web services that run internally that are utilised within SharePoint. We are using SharePoint 2013 On Prem but are planning a move to the cloud. I currently have a farm solution which ...
3
votes
0answers
178 views

Get current page URL and Title from a Provider Hosted add-in Part?

I'm looking to see if there is a way to grab the current URL and title of the page that the add-in part is residing on. The add-in part is a Provider Hosted add-in with the main piece living outside ...
3
votes
0answers
858 views

{StandardTokens} token in CommandAction Url does not get replaced

I have a provider hosted add-in running on a SharePoint Online development site that has several lists as part of the solution. My goal is on when somebody clicks a Ribbon CustomAction associated ...
3
votes
0answers
125 views

Is there a unique ID for add-in instance?

I'm developing a SharePoint add-in with provider hosted app. One requirement is to uniquely identify add-in instances. The user can install add-in multiple times. Provider hosted app stores mapping ...
2
votes
0answers
122 views

Issue With Provider hosted app in SharePoint Online for the Users Randomly

Background We had developed a provider hosted app with Web Forms template for copying the content(list Items,Documents) from one site collection to another site collection,for this we are doing this ...
2
votes
0answers
58 views

Is it feasible to check PDF accessibility using c#?

I need to check accessibility for uploaded pdf using any dll or any other way. Is it feasible programmatically using c#. Accessibility of pdf means pdf contain header or footer and misspelled word in ...
2
votes
0answers
678 views

SharePointContextProvider.Current.GetSharePointContext(Context) returns null on postback from IE browser from provider hosted app

I have a provider hosted app hosted on Azure and installed in SharePoint Online (Office 365). It works fine on Google Chrome browser but fails to get SharePoint context on post back using ...
2
votes
0answers
409 views

Is the OAuth implicit grant type supported for provider-hosted add-ins?

The provider of my provider-hosted add-in needs to ask for SharePoint (Online) permissions on the fly. OAuth can be used to achieve this, as documented here in MSDN. The authorization is low-trust ...
2
votes
0answers
102 views

Provider Host App- App Domain

I am new to Provider Hosted App developement. I am planning to create a provider host app and while I was reading many articles , I got confused some terminologies like App-domain and Forward lookup ...
2
votes
0answers
624 views

How to perform a search query on behalf of a user from an app-only ACS context

We have a client requirement where we have a scheduled process that needs to perform a collection of search queries towards Office365/SharePoint Online on behalf of various users to ensuring that the ...
2
votes
0answers
37 views

Creating Charts in 0365

I am developing a Share-point Application in O365. Will it be possible to use web-part in online premise or only app part can only be used. Following is the code I have used. I am getting the Access ...
2
votes
0answers
57 views

Attach InfoPath to AppWeb Library in SharePoint Online

Error while adding InfoPath form to form Library created using SharePoint Hosted App which will be deployed to AppWeb. This form template is browser-compatible, but it cannot be browser-enabled on ...
2
votes
0answers
589 views

Get SharePoint group permissions level name based on group name Using SharePoint Rest API

I am trying to get SharePoint User group permissions (Ex: Read, Contribute) based on the group name using SharePoint Rest API. My goal is to get the permission level of the group and disable features ...
2
votes
0answers
589 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
2
votes
0answers
178 views

Add-in web (app web) authentication using credentials from Trusted identity provider

I have set up a SharePoint web application with custom Trusted identity provider: I have built provider hosted add-in (app) and successfully deployed it to a site within aforementioned web ...
2
votes
0answers
67 views

Is cross-site lookup possible with a provider-hosted app?

I have following problem. I got two projects, one sharepoint-hosted app and another provider hosted app. Both contain a couple of lists. So far so good. Now I need the data from the sharepoint-hosted ...
2
votes
0answers
92 views

Deploying default mvc provider hosted app

I am trying to test provider hosted apps. I created the default MVC application with no changes. The issue I am running into is permissions for the app. When I deploy with AppPermissionsRequests in ...
2
votes
0answers
685 views

SharePoint 2013: Retreving the list of files on a List I always get an empty result

I have a list in SharePoint on Premise in which I know there are 2 files and a folder. If I try to get the list of files from it I always get an empty response like in the example: GET :url/web/...
2
votes
0answers
952 views

Access Denied Error with Provider Hosted App (MVC/CSOM)

I built a PHA using MVC a little while ago. I'm receiving "Access denied. You do not have permission to perform this action or access this resource." error when trying to update or even access simple ...
2
votes
0answers
1k views

How to get a new refresh token after it expires?

How to get a new refresh token after it expires? We have a scenarios in provider-hosted app which require to cache the refresh token in db, and we were reusing it to generate client context. It was ...
2
votes
0answers
376 views

Add a reference to a JavaScript file in a custom action for a provider hosted app

I have a custom ribbon button in my app where I am trying to add logic to enable/disable the button based on whether or not the selected items are records. I am able to get the EnabledScript attribute ...
2
votes
0answers
95 views

provider hosted app - access a list in mysite

I am creating a provider hosted app for O365 and have given read permission on tenant. Is there any way, I can access a list present in mysite of any user (not just the current user)? If for example, ...
1
vote
0answers
28 views

SP Host web look not propagated to chrome control in add-in web

I have a provider hosted add-in which uses chrome control. Previously, if I changed the look of SP host web, that change would propagate to add-in web too and chrome control would update. This is ...
1
vote
0answers
19 views

Provider hosted app: TokenHelper not authorized to get context

I followed this tutorial to deploy Provider Hosted App to production environment. It has a proper SSL certificate installed, it's registered within SharePoint and TokenHelper class is modified. App ...
1
vote
0answers
42 views

Unauthorized error on GetProvisioningTemplate

I have Provider Hosted Add-In and everything is working as expected but fails on 'web.GetProvisioningTemplate(creationInfo)'. it gives me below error The remote server returned an error: (401) ...
1
vote
0answers
55 views

Cannot debug Provider-Hosted Add-In: VS2017 hangs opening Chrome (resolved)

Update: Resolved (hope so). Maybe this is a bug and upgrade VS2017 to to 15.7.6 helps. I close my Chrome every time before f5 -- Every How-to for beginners in the net say "Hit F5 and voila!" - but ...
1
vote
0answers
266 views

UserProfileProperties: You do not have permission to perform this action or access this resource

C#: PeopleManager peopleManager = new PeopleManager(clientContext); PersonProperties personProperties = peopleManager.GetMyProperties(); try { clientContext.Load(personProperties, p => p....
1
vote
0answers
49 views

Visual Studio get stuck at “Communicating with SharePoint” when deploying

I am trying to deploy a provider-hosted sharePoint add in visual studio 2017 and sharePoint 2016. I have successfully created a Publish Profile using the clientID and secretID. The connection to the ...
1
vote
0answers
27 views

Authenticate SharePoint On-Premise from Android App

How to Authenticate SharePoint On-Premise Rest APIs from an Android App?
1
vote
0answers
41 views

How to get popular Tags using Popular Items' web-part in SharePoint online?

I want to show popular tags used across my site collection. I have tried 'Tag cloud web part' but it has been retired from SharePoint Online. To achieve this I have used 'Popular Items' web part by ...
1
vote
0answers
274 views

Why we need to generate new ClientID and ClientSecret for provider hosted app from appregnew.aspx? and we cannot use the one generated by VS project?

I am a bit new to the Provider-Hosted App world inside office 365, and there are confusing issues i am facing in understanding the idea of registering our provider-hosted apps inside the site ...
1
vote
0answers
28 views

Deployment of Provider Hosted Addin

I created a Provider Hosted Addin for SharePoint Server 2016 using Visual Studio 2015. All went well. When I right click solution and chose Deploy Solution, Visual Studio only display 'Deployment ...
1
vote
0answers
60 views

Can't set Context in Provider Hosted App

I'm trying to get access to context in a provider hosted Sharepoint App, so that I can use the following to move folders via javascript: SP.MoveCopyUtil.moveFolder(context,currentFolder,...
1
vote
0answers
176 views

Low trust SharePoint provider hosted app

For learning purposes I am trying to create a low trust provider hosted app on my on prem SP2013 machine on a team site collection. I have created a new project with an MVC application template. When ...
1
vote
0answers
91 views

Publish code from visual studio 2015 to Azure

We have been hosting the provider hosted app on the Azure environment from Visual Studio 2015.But from today morning the below error is coming. Web deployment task failed. (Could not connect to the ...
1
vote
0answers
69 views

Provider Hosted App using DevOPs

We are using SharePoint Online, and have developed a provider hosted app. How to Deploy this provider hosted app using DevOps model?
1
vote
0answers
43 views

Create high trust for SharePoint Add-ins in SharePoint on-premises

I had configured app domain for on-premises ,And I am looking for the next level to generate the Certificate for high trust . Can any one guide me how can I generate certificate for developers
1
vote
0answers
119 views

Close The Modal Dialog Of A Provider-Hosted App

I have a provider hosted app which creating a custom ECB and Ribbon action on lists in SPO which opens popup using the newcustomaAction.Url = "javascript:OpenPopUpPageWithTitle('" + Actionurl + "', ...
1
vote
0answers
40 views

Provider Hosted Application With Top and Left Nav

I currently have a provider-hosted SharePoint Add-In that is using the chrome control to provider navigation back to SharePoint. What are my options to make the application feel like it is more of a ...
1
vote
0answers
29 views

Hosting Provider Hosted App on SharePoint Application Server in a 3 tier farm

We are planning to host a provider hosted app on a SharePoint Application server in a 3 tier architecture. Assuming that my host web would be in SharePoint web server and app web would be in ...
1
vote
0answers
31 views

FxCop Code analysis error for Provider Hosted App

I am running FxCop tool on my provider hosted app. But it is giving an error in web.config file like CA3116 DenyUnauthorizedUsers You are explicitly allowing all authenticated users for whom no ...
1
vote
0answers
313 views

Provider hosted high trust add-in authentication with CNG key storage provider | Invalid provider type specified

I have the same problem as here, so I get the error: "Invalid provider type specified". However .NET 4.6 added support for CNG certificate handling so no need for additional libraries. What changes ...
1
vote
0answers
73 views

How to stop Authentication for Provider Hosted APP when its host to different domain IIS

I have hosted my Provider Hosted APP website to "Dedicated server domain IIS" and installed APP to SharePoint Site which is in different domain. Now when I open the APP, its promoting for the ...