Suddenly rebooting Visual Studio will fix something :)
You need to run Visual Studio as an administrator (right-clicking on the icon)
If it still persists, restart the server.
If it still persists, add the administrator account under which you use Visual Studio for the Sharepoint admin center for this sharepoint web portal.
source share