10
votes
Accepted
Interview Questions on SharePoint Apps which I could not answer
Where does the code lies for Provider Hosted App? does it lie in
SharePoint server?
The code for provider hosted app lies in remote web. Remote web is a web application that is hosted outside ...
9
votes
Accepted
Can't install app in AppCatalog
There is currently some issue going on at Microsoft's end(across most regions) because of which you are not able to install app in App Catalog. This is affecting both SPFx solutions as well as ...
7
votes
Accepted
Provider Hosted App in sharepoint online without using Azure
Q: Can we develop a Provider Hosted App in SharePoint online without using Azure?
A: Yes, it is possible to develop Provider Hosted App for SharePoint Online without using Azure.
How?
Lets have ...
6
votes
Accepted
How to generate App Registration data in SharePoint Online through PowerShell
You'll need the MSOnline module, which you can download from here (I have 1.1.166.0, I cannot say if this will work on an older version).
The following worked for me:
$clientId = [System.Guid]::...
6
votes
Accepted
Provider Hosted APP with Azure & On-Premise Deployment Not able to take ClientContext
Provider hosted apps are divided into two different categories in terms of authentication mechanism.
These are low-trust apps and high-trust apps, both use OAuth for authentication.
Low ...
6
votes
Accepted
Angular 2 with SharePoint provider hosted app
Finally, I got the solution after lots of googling and brain-stroming. I am not able to solve the REST API - 403 error issue but I got work around for this.
I have created Web APIs in MVC project for ...
5
votes
Accepted
Get custom columns from folder into document library C#
Use Folder.ListItemAllFields property to retrieve folder associated list item properties
Example
Folder folder = ctx.Web.GetFolderByServerRelativeUrl(folderUrl);
ctx.Load(folder,f => f....
5
votes
Accepted
Are there real differences in App/Add-in development inside on-premise SP 2013, compared to on-premise 2016 and office 365
A1: For the most part the process of developing apps for SharePoint 2013, 2016 and SharePoint Online is the same. The one big difference in the authentication model used by Provider-hosted apps. If ...
5
votes
Accepted
How to change hosting server for SharePoint Provider Hosted Apps without disturbing the existing users?
I haven't tried this practically, but I am sharing based on my understanding. Please feel free to comment if any thing is practically incorrect.
Approach-1:
Just configure the new domain with the old ...
5
votes
Remote Event receiver using provider hosted app
If you are finding it difficult to debug your remote event receiver,
most probably you would be using an incorrect connection string to
connect to the Microsoft Azure Service Bus. Visual Studio ...
5
votes
Accepted
access another site collection with client ID and client secret
If you want to use client id and secret across site collections, you should add tenant scoped permissions for your app:
If you want to register the app once and use it for any site collection, it's ...
4
votes
Is it possible to Host Provider Hosted APP in Dedicated Server IIS and Consume in Office 365?
Yes it is possible. I worked on a provider hosted add-in which I deployed in IIS and was used by O365. When you create the add-in, give O365 site URL and log in. After that select SP Online as ...
4
votes
Accepted
SharePoint 2013 Provider-Hosted App "Azure Access Control Service is unavailable"
After a long series of reconfiguration…and reconfiguration…and reconfiguration, it would appear that the issue was directly related to the certificates in use.
As mentioned in many other blog posts, ...
4
votes
How to implement Remote event receiver in sharepoint online?
If you want to create Remote Event Receiver for List on Host Web, the following articles for your reference:
Attaching Remote Event Receivers to Lists in the Host Web
Remote Event Receiver (RER) for ...
3
votes
Accepted
Provider hosted app with Sharepoint Master page
Yes , We can apply the default SharePoint Look and feel to the Provider Hosted apps by use of SharePoint Chrome control , here we need to add this chrome control in top of the page which will inherit ...
3
votes
Create result source with CSOM
It is possible to create a result source with CSOM. Basically what you do is:
Manually create the result source in SharePoint (in the site, sitecollection or tenant level depending on your ...
3
votes
Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise
Sharepoint add-on is new standard and MSFT encourage all the customer to adopt that one.
Main reason (there are many others)is Office 365, if your company want to move Office 365 then you have to ...
3
votes
Accepted
How to Set Up SharePoint App development environment without configuring DNS
Yes, instead of modifying DNS settings, you can update your local hosts file located at C:\Windows\System32\drivers\etc.
In this file you need to put your app host url and IP address. For example ...
3
votes
Trace.Writeline() not working in Provider Hosted App
Few points to check:
In web.config add
<system.diagnostics>
<trace>
<listeners>
<add name="WebPageTraceListener"
type="System.Web....
3
votes
Accepted
Is it possible to Host Provider Hosted APP in Dedicated Server IIS and Consume in Office 365?
Yes , It can be done by following the steps we used to do with High Trusted Apps Deployment(Server to Server) in On Premises ,
Self signed certificate for your web app in local IIS
Register app ...
3
votes
Get current logged in user in provider hosted app
If you are using app only context in your provider hosted app then you need to do a li'l extra work and use TokenHelper to get appOnlyAccessToken. On App's page load, just run the below script:
var ...
3
votes
Sharepoint App Secret Expiration
You can use my script to register app for 5 years (or more) just change New-MsolServicePrincipal command parameters.
#Import-Module MSOnline
[System.Reflection.Assembly]::LoadWithPartialName("...
2
votes
Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise
In short, by now (December 2016), official MS guideline is "Use new add-in model whenever it's possible".
In reality, you're absolutely correct, new add-in model in most cases requires a lot more ...
2
votes
Accepted
Pass authentication from provider hosted add-in to external web service
You can solve this issue in different ways.
Since you are using authorization filters (like WebAPIContextFilter) I'm assuming you are not using Owin middleware for ASP.NET.
This approach I'm ...
2
votes
Accepted
What is the best practice to get the context of subsite?
The easiest way is to construct web object using OpenWeb method like this:
var subweb = clientContext.Site.OpenWeb("subsite1");
clientContext.Load(subweb);
clientContext.ExecuteQueryRetry();
...
2
votes
Accepted
Is a ClientId and Certificate always needed for a Microsoft SharePoint Provider hosted app?
For SharePoint Online (low-trust apps) and on-premise in low-trust scenario:
for every new addin you need new ClientId and ClientSecret
no need for SSL certificates (since we are using low-trust ...
2
votes
Accepted
How to get the FileRef property of a document library file with CSOM
var fileName = "Document.docx";
ClientContext clientContext = new ClientContext("http://sitecollectionurl");
Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("Test");
...
2
votes
Accepted
Cannot publish my SharePoint MVC app project in VS
I found another solution which is better than my previous solution. In your Visual Studio you have publish profiles. In your publish profile you can go to settings. Disable the option: Precompile ...
2
votes
Cannot publish my SharePoint MVC app project in VS
It is not possible to use the SharePoint token ~TemplatePageUrl in the virtualPath.
I fixed it by my self. I renamed the Home.aspx to Home.txt. Now I can do a publish. After the publish I use gulp to ...
2
votes
Accepted
Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise
You can still use Farm Solutions in your development. Maybe your customer isn't thinking about migrating to the cloud. Farm solutions are still supported in SharePoint 2016 as well, so I don't see the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
provider-hosted-app × 428sharepoint-online × 155
sharepoint-addin × 135
2013 × 69
office-365 × 47
csom × 37
azure × 32
remote-event-receiver × 27
sharepoint-hosted-app × 25
sharepoint-enterprise × 24
client-object-model × 22
app × 21
sharepoint-server × 20
development × 17
sharepoint-on-prem × 17
authentication × 16
mvc × 15
javascript × 12
permissions × 8
apps-development × 8
rest × 6
debugging × 6
certificate × 6
high-trust-app × 6
search × 5