Skip to main content
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 ...
Vineet Desai's user avatar
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 ...
Gautam Sheth's user avatar
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 ...
Trimantra Software Solution's user avatar
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]::...
wjervis's user avatar
  • 5,738
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 ...
Sergei Sergeev's user avatar
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 ...
Dikesh Gandhi's user avatar
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....
Vadim Gremyachev's user avatar
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 ...
Rob Windsor's user avatar
  • 12.7k
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 ...
Aakash Maurya's user avatar
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 ...
Aakash Maurya's user avatar
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 ...
Sergei Sergeev's user avatar
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 ...
Garima's user avatar
  • 3,024
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, ...
BJenkins's user avatar
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 ...
san's user avatar
  • 1,654
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 ...
Esaki's user avatar
  • 1,266
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 ...
Vardhaman Deshpande's user avatar
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 ...
Waqas Sarwar MVP's user avatar
  • 56.9k
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 ...
Sergei Sergeev's user avatar
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....
Sergei Sergeev's user avatar
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 ...
Esaki's user avatar
  • 1,266
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 ...
DvG's user avatar
  • 2,332
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("...
Petr Štěpka's user avatar
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 ...
Sergei Sergeev's user avatar
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 ...
Sergei Sergeev's user avatar
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(); ...
Sergei Sergeev's user avatar
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 ...
Sergei Sergeev's user avatar
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"); ...
Gautam Sheth's user avatar
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 ...
Ola's user avatar
  • 4,395
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 ...
Ola's user avatar
  • 4,395
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 ...
Mohamed Derhalli's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible