0
votes

SP2013: I created a SharePoint hosted App (Hello World program) in VS2012. Now to upload/install the app, I tried powershell, Below is powershell commands for installing app:

$spapp = Import-SPAppPackage -Path "D:\demoAppSPHosted.app"  -Site "http://spsite:2222/" -Source DeveloperSite 

Install-SPApp -Web "http://spsite:2222/sites/devApp"-Identity $spapp

I am not able to pass this hurdle:

Install-SPApp : The specified URL is not in the same Site Collection as this App

1

1 Answers

0
votes

For developer site, you could upload the .app to 'Apps in Testing' directly.

For this case, I think the -Source parameter should be App catalog.

Here is sample script for normal installations.