Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint App deployment using powershell error

$
0
0

I have SharePoint 2013 on premise set up on windows azure cloud, We have set up app catalogue. Developed and deployed sharepoint hosted app from visual studio it works perfectly.

But when i take the same .app file from the solution and try to deploy that file from powershell ( which ultimately we need for the app to be deployed on the UAT server)  it gives me an error.

Powershell command i am using and site collection structure

Web application /Site collection /Subsite  i want to deploy to sub site 

Root site collection : rst

subsite : weather

subsite below weather : meter

$path ="C:\absolute_path_to_app\bin\Debug\app.publish\1.0.0.0\CustomApp.app"
$web = "http://server/weather/meters/"

$web = Get-SPSite $web 

#$spapp = Import-SPAppPackage -Path $path -Site "http://server/" –Source ObjectModel

#$instance = Install-SPApp -Web  $web -Identity $spapp

$instance = Get-SPAppInstance -web $web | Where-Object { $_.Title -eq "customapp" }

when i try to see the app it shows as deployed in subsite and from power shell it gives the instance status all OK

When i go to the sub-site and click on the app it can not redirect to the app and gives page not found error.

Please help 

Thanks in Advance



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>