SharePoint Search and the Inconvenient MetadataExtractorTitle Crawled Property


References: Confusing titles and PDF files in SharePoint Search Show more relevant Titles in search results in SharePoint 2013 plus some other improvements SharePoint 2013 Search Configuration for Title I recently came across a problem in SharePoint Search which had me flumuxed for a while, looking at the search results below is displayed the results of … Continue reading SharePoint Search and the Inconvenient MetadataExtractorTitle Crawled Property

Exception “For security reasons DTD is prohibited in this XML document” Connecting to SharePoint Online with CSOM


A few times over the last year or so I’ve come across an error while trying to connect to SharePoint Online using CSOM; Exception calling “ExecuteQuery” with “0” argument(s): “For security reasons DTD is prohibited in this XML document. To enable DTD processing set the Dtd Processing property on XmlReaderSettings to Parse and pass the … Continue reading Exception “For security reasons DTD is prohibited in this XML document” Connecting to SharePoint Online with CSOM

Fixing the Page Reload Issue for SharePoint ASP.NET MVC Provider Hosted Addins


If you launch a SharePoint/Office365 provider hosted addin using a direct URL to the app, rather than using the site contents page/applauncher, either as a dialog or fullpage immersive – you may notice that after your addin displays in the browser, the page is automatically reloaded. First, in this scenario because you [probably] won’t have an access token, nor a context … Continue reading Fixing the Page Reload Issue for SharePoint ASP.NET MVC Provider Hosted Addins

Add SharePoint Context Parameters to your MVC Provider Hosted App Form POST


You’re developing a SharePoint provider hosted app and you need to do a form post to a controller action, and in that controller action you need to get a SharePoint context using the SharePointContextProvider class. When you do this, you may find that an exception is thrown by this class because there aren’t any of … Continue reading Add SharePoint Context Parameters to your MVC Provider Hosted App Form POST

Enable IFraming in a SharePoint Provider Hosted MVC App


In order to show your shiny remote provider hosted app in a dialog or IFrame, the calling domain of the page with the IFrame, must match the domain of the target page (the page being IFramed). Why might you do this? well there a quite a few patterns in the OfficeDev PnP which use remote provider hosted … Continue reading Enable IFraming in a SharePoint Provider Hosted MVC App

Set a PropertyBag Property as Indexed (Queryable via Search) using CSOM + Powershell


PropertyBag values in SharePoint 2013 can be indexed, which means that they’re indexed by Search and a crawled property is created using the PropertyBag name as the crawled property name. If you then create a managed property mapped to the crawled property you can use it in your search queries. The code below creates an indexed … Continue reading Set a PropertyBag Property as Indexed (Queryable via Search) using CSOM + Powershell