I'm trying to deploy my first sharepoint 2013 via Visual Studio. I generated an isolated app domain.

When deploying the app i get an error in Visual Studio.

ErrorDetail: The remote hosting service is not configured.
ErrorType: Configuration
ErrorTypeName: Configuration
ExceptionMessage: Microsoft.Office.SecureStoreService.Server.SecureStoreServiceTargetApplicationNotFoundException: Target application not found (application id: __RemoteAppManagementInfo__).


I don't know how to fix that. I already set up a new App Service Apllication, generated a key in secure store, restarted it, add Managed Account to Admin-List of secure store.


Question: How to deploy webpart on production (not debugging) server?
Answer: Alternatively you can create some .bat files and then run them from command prompt as Administrator:

1. Add.bat

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o addsolution -filename "C:\YourSolution.wsp"

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o deploysolution -name "YourSolution.wsp" -immediate -url http://YourDomain -allowgacdeployment -allowcaspolicies


2. Retract.bat

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o retractsolution -name "YourSolution.wsp" -immediate -allcontenturls


3. Delete.bat

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe" -o deletesolution -name YourSolution.wsp


Additional resources:

Index for Stsadm operations and properties