This SharePoint tutorial explains, how to resolve the issue “Sorry something went wrong. Please refresh the page and try again.” which comes while uninstalling apps from SharePoint 2016.
Recently after configuring the environment for Apps for SharePoint 2016, we added a free app (Spotlight Announcement) to the SharePoint site.
After this when we try to remove the app from the site, then it shows some error like:
Sorry, something went wrong. Please refresh the page and try again.
After this even if you will try to refresh and try again the same issue will come.
After this we try to remove app using PowerShell like below:
Add-PSSnapin Microsoft.SharePoint.PowerShell
$AppName=”Spotlight Announcements”
$appInstance = Get-SPAppInstance -Web “http://mypc:29024/sites/SPTraining/” | where-object {$_.Title -eq $AppName}
if ($appInstance -ne $null)
{
Uninstall-SPAppInstance –Identity $appInstance
}
But it also gave error like below:
Uninstall-SPAppInstance : The System Account cannot perform this action.
At line:8 char:1
- Uninstall-SPAppInstance –Identity $appInstance
~~~~~~~~~~- CategoryInfo : InvalidData: (Microsoft.Share…pInstanceCmdlet:UninstallSPAppInstanceCmdlet) [Uninstall-SPAppInstance], InvalidOperatio
nException - FullyQualifiedErrorId : Microsoft.SharePoint.Administration.SPAppCmdlets.UninstallSPAppInstanceCmdlet
Sorry something went wrong. Please refresh the page and try again SharePoint 2016
When I was trying to remove the app from the browser I was trying with the System Account. That was creating the problem.
When I see the Details about the App, I can see the App is installed by someone else which looks like below:
Then I logged in with the other user and then I tried to remove the app. This time it successfully removed.
You may like following SharePoint apps tutorials:
- Display SharePoint List Items in Hyperlink in SharePoint Hosted Add-in or Apps
- SharePoint Hosted Apps: Create Choice Type Column in SharePoint Online Office 365
- Workflow App Identifier in SharePoint Online App Permissions
- Set up an On-Premise development environment for SharePoint Add-in or Apps development in SharePoint 2016/2013
- Develop SharePoint workflows using visual studio as SharePoint hosted App
- Error occurred in deployment step Install app for SharePoint Communication with the SharePoint server is canceled
- How to create provider hosted app in SharePoint Online step by step
- SharePoint Hosted App: Get Data from Host Web
This SharePoint tutorial, we learned how to fix error Sorry something went wrong. Please refresh the page and try again which comes while uninstalling apps in SharePoint 2016.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com