pnp / PnP-Tools

Scripts and tools for Office 365 and SharePoint - More for IT Pro's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Responsive UI for SP 2016 Error

pradeepkothamale opened this issue · comments

I had download the responsive script and run the below PowerShell and I get below error.
PowerShell: .\Enable-SPResponsiveUI.ps1 -TargetSiteurl https://XYX/SiteColl

Environment is SharePoint 2016 On premise and it uses claims based authentication. I had installed SharePointPnPPowerShell2016 module before running powershell script. Any idea why i am facing this error?

ERROR
Exception Type: System.NotSupportedException
Exception Message: Cannot contact web site 'https://XYS' or the web site does not support SharePoint Online credentials. The response status code is 'Forbidden'. The response headers
are 'X-SharePointHealthScore=0, SPRequestGuid=cf39ef9e-a9b2-60d1-e0d9-d1529011e623, request-id=cf39ef9e-a9b2-60d1-e0d9-d1529011e623, X-Forms_Based_Auth_Required=https://bidev908.unicef.org/_login/defa
ult.aspx?ReturnUrl=/_layouts/15/error.aspx, X-Forms_Based_Auth_Return_Url=https://XYZ/_layouts/15/error.aspx, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+locat
ion%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically., MicrosoftSharePointTeamServices=16.0.0.4834, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1; RequireReadOn
ly, Content-Length=13, Content-Type=text/plain; charset=utf-8, Date=Thu, 11 Jul 2019 14:29:11 GMT, Server=Microsoft-IIS/8.5, X-Powered-By=ASP.NET'.