SPFarm property CustomAppRedirect value is false or not set

SPFarm property CustomAppRedirect value is false or not set.

SharePoint can give you a new idea about Microsoft products. Its now doubt a very good and enjoyable thing to work on. You can achieve many things and provide a central location for your users. It can give you a heart attack as well. Everything is configured correctly still apps are not working. The SPFarm property CustomAppRedirect value is false or not set error can occur while working with apps. You need to use uslviewer to get this error. I hope you know how to use ulsviewer.

After installing security patch provider hosted app page shows “You are being redirected to the following URL that was not registered as the app launch URL”

https://xx?SPHostUrl=xx&SPLanguage=enSPClientTag=0&SPProductNumber=xx&SPAppWebUrl=xx&{AppContextToken}

If you trust this URL, click here to proceed to the app now. Otherwise, go back to the previous page or close this page. It will give an error SPFarm property CustomAppRedirect value is false or not set. You may also receive this type of error when trying to access app or add-inn of developed and published app.

SPFarm property CustomAppRedirect value is false or not set

If you are getting the error in SharePoint 2013 on premise, then you can run the below mentioned PowerShell commands to solve this problem.

Solution

Add-PSSnapin Microsoft.SharePoint.PowerShell
$farm = Get-SPFarm
$farm.Properties[“CustomAppRedirect”] = $true
$farm.Update()

Once you are done with the power shell commands, restart the IIS web server. Go back to Share point site and try to access the application. The above commands solved my problem and I am sure they will solve yours as well, if you are getting the exact error. For more share point related queries, please visit the share point category page on our website.

All these instructions are provided as is, Windows Tech Updates team is not responsible for any loss or damage. Please apply these instructions on dev or test environment before going for production. Better sage than sorry!!!!

Please share this post with your contacts if it helped you.

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.