locked
Create SharePoint Online App Hangs on Installation RRS feed

  • Question

  • Hi there,

    I'm developing a very simple sharepoint add-in. I've got it setup as a provider hosted application. I've setup a private app catalog for my sharepoint online site and I've installed the application definition into the app catalog... When I try and install the application it just hangs though and doesn't install... I don't know what to do or how to debug this. Any help will be appreciated.

    The exact same app definition works with my local sharepoint 2013 on site installation... It is a provider hosted application so it launches custom code on an external app server.

    It is also a full trust application. I noticed that when I change it to a sharepoint hosted application it works totally fine.

    A link to my app file: https://www.dropbox.com/s/v9vz6p3vtuitbpo/Hubware.SP13.AppCore.app?dl=0

    Cheers,

    Michael

    Wednesday, April 20, 2016 10:54 AM

Answers

  • I suspect the problem is that you created a full trust app using server to server authentication (since it works on-premises) but when you move it to the cloud it is expecting to use Azure authentication.  

    Also, since its a provider hosted app you'll need to make sure that the web server that hosts the provider portion of the app is accessible from the Internet.  When you first create a project VS creates the provider portion in a local web server.  This can't be used in the final deployed APP.  You need to deploy the provider portion of the app to a web site separately.


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Wednesday, April 20, 2016 11:52 AM
  • I would agree with Paul, my 2 cents 1. High trust apps/addins does not work in SharePoint online, you need to create the app as low trust. Register it in ACS (appregnew.aspx) or in Azure AD 2. Your app/addin hosted web server must have access to Internet. Okay, when try to add the app to the site there should be a small ellipses when you click on the app it will give you the details of the install error.

    ---
    Rajesh | Blog

    Wednesday, April 20, 2016 12:50 PM
  • Hi Michael,

    A high-trust add-in is a provider-hosted SharePoint Add-in that is installed to an on-premises SharePoint farm. It cannot be installed to Microsoft SharePoint Online or marketed through the Office Store. A high-trust add-in uses a certificate instead of a context token to establish trust.

    https://msdn.microsoft.com/en-us/library/office/jj945118.aspx?f=255&MSPPError=-2147217396

    And we can configure low trust app in SharePoint on-premise, but it needs some configurations.

    Please refer to the links below for more details:

    SharePoint Low-Trust Apps for On-Premises Deployments: https://blogs.msdn.microsoft.com/besidethepoint/2012/12/10/sharepoint-low-trust-apps-for-on-premises-deployments/

    How To Configure SharePoint 2013 On-Premises Deployments for Apps: http://blogs.technet.com/b/mspfe/archive/2013/01/31/configuring-sharepoint-on-premise-deployments-for-apps.aspx

    Best Regards,

    Victoria 


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Tuesday, April 26, 2016 9:29 AM

All replies

  • I suspect the problem is that you created a full trust app using server to server authentication (since it works on-premises) but when you move it to the cloud it is expecting to use Azure authentication.  

    Also, since its a provider hosted app you'll need to make sure that the web server that hosts the provider portion of the app is accessible from the Internet.  When you first create a project VS creates the provider portion in a local web server.  This can't be used in the final deployed APP.  You need to deploy the provider portion of the app to a web site separately.


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Wednesday, April 20, 2016 11:52 AM
  • I would agree with Paul, my 2 cents 1. High trust apps/addins does not work in SharePoint online, you need to create the app as low trust. Register it in ACS (appregnew.aspx) or in Azure AD 2. Your app/addin hosted web server must have access to Internet. Okay, when try to add the app to the site there should be a small ellipses when you click on the app it will give you the details of the install error.

    ---
    Rajesh | Blog

    Wednesday, April 20, 2016 12:50 PM
  • Cool I'll try change it to azure authentication... Didn't know that sharepoint online didn't support server to server authentication. My server is available on the net. Thanks for the response!
    Wednesday, April 20, 2016 4:43 PM
  • It does work as a high trust app if you have your own private catalog... Like it doesn't give me any issues when I press install. If I change the same app with the same permission requirements to sharepoint hosted it is fine, so I don't feel like it's the permissions. I add the appregnew.aspx. Yes the server is available on the internet. I didn't see any error details, I'll look again. Thanks for the reply!
    Wednesday, April 20, 2016 4:44 PM
  • also is it possible to get azure authentication working on my on premises installation... I was previously using azure authentication and that was what was stopping my app from working. Then I switched it to server to server authentication and then it started working...
    Wednesday, April 20, 2016 4:47 PM
  • Hi Michael,

    A high-trust add-in is a provider-hosted SharePoint Add-in that is installed to an on-premises SharePoint farm. It cannot be installed to Microsoft SharePoint Online or marketed through the Office Store. A high-trust add-in uses a certificate instead of a context token to establish trust.

    https://msdn.microsoft.com/en-us/library/office/jj945118.aspx?f=255&MSPPError=-2147217396

    And we can configure low trust app in SharePoint on-premise, but it needs some configurations.

    Please refer to the links below for more details:

    SharePoint Low-Trust Apps for On-Premises Deployments: https://blogs.msdn.microsoft.com/besidethepoint/2012/12/10/sharepoint-low-trust-apps-for-on-premises-deployments/

    How To Configure SharePoint 2013 On-Premises Deployments for Apps: http://blogs.technet.com/b/mspfe/archive/2013/01/31/configuring-sharepoint-on-premise-deployments-for-apps.aspx

    Best Regards,

    Victoria 


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Tuesday, April 26, 2016 9:29 AM