powershell - Can't Uninstall Sharepoint Application - Invalid State -


our sharepoint 2013 application failed install , stuck in odd state. followed recommended approach deleting application using powershell commands on hosted sharepoint server, doesn't execute properly.

visual studio deployment/retract reports:

skipping uninstall step because app sharepoint in invalid state , cannot uninstalled.

powershell commands

$instances = get-spappinstance -web http://mysite/sites/collection $instance = $instances | {$_.title -eq 'application.title'} uninstall-spappinstance -identity $instance 

executing ps command throws...

 system account cannot perform action. 

there no option sharepoint ui remove application, , retrying install fails. i've tried other user accounts execute powershell command (other system account), no dice. have delete developer site collection if there no other solution.

i'm faced problem before on office 365 sharepoint online when deploy sharepoint hosted app. submit microsoft service request , work ms technical support team on issue. problem seem error in sharepoint backend database (i'm not sure consider sharepoint defect).

did check app details installation error report? if message:

"the content database on server temporarily unavailable."

need help: error 'install app sharepoint': instance of app exists @ specified location., i'm quite not understand answer there 1 comment jeremy thake seem deleted on thread, said that:

"…so restarted whole environment , when windows came , went sharepoint site…the app gone ;-)"

so here advice before commit delete site collection:

  1. try deploy developer site collection , check whether problem still occur same.
  2. try increase app version or change app name/title/id , deploy same site collection , check whether problem still occur same new app instance.
  3. for sharepoint server, try restart iis/window server if you're able that. install latest sharepoint update/cu.
  4. for office365 - sharepoint , have have license account, should submit service request, if not should wait several day , try remove app instance again through ui.

hope can remove app , know root cause exactly.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -