I have a Sharepoint-hosted App which i try to deploy in my local test environment. Which was working for a while, but since today everytime when i try to deploy it with visual studio it comes an error:
Error8Error occurred in deployment step 'Uninstall app for SharePoint': <nativehr>0x80070002</nativehr><nativestack></nativestack>So i searched the logs and found this:
Unknown SPRequest error occurred. More information: 0x80070002<nativehr>0x80070002</nativehr><nativestack></nativestack>
<nativehr>0x80070002</nativehr><nativestack></nativestack>
SPRequest.GetWebUrl: UserPrincipalName=i:0).w|s-1-5-21-3965293948-3092640717-2026776325-1111,
AppPrincipalName= ,gSiteId=6cc1f2c3-43d0-430e-8acb-a02ea40ac580 ,gWebId=2de7d478-3575-41bf-826d-d167ebfaea02 ,
bstrSiteUrl=http://xxx/sites/postbuch
System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>,
StackTrace: at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId, Int32 mondoHint)
at Microsoft.SharePoint.Administration.SPAppInstance.Delete()
at Microsoft.SharePoint.Administration.SPAppInstance.Uninstall(Boolean adminOperationMode)
at Microsoft.VisualStudio.SharePoint.Commands.SharePointCommands.AppRetract(ISharePointCommandContext context, Guid productId)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Microsoft.VisualStudio.SharePoint.Commands.SharePointCommand.Execute(SharePointContext sharePointContext, CommandFlags flags, Byte[] serializedParameter, ISharePointCommandLogger logger)
at Microsoft.VisualStudio.SharePoint.Commands.CommandManager.ExecuteCommand(SharePointContext sharePointContext, String commandId, CommandFlags flags, Byte[] messageBody)
at Microsoft.VisualStudio.SharePoint.Commands.RemoteCommandService.ExecuteCommand(String commandId, CommandFlags flags, Byte[] messageBody)
So the information is not really helping me.