Sp-dev-docs: Is it possible to host create ASP.NET Core applications on SharePoint Online?

Created on 27 Feb 2020  路  5Comments  路  Source: SharePoint/sp-dev-docs

Is it possible to host create ASP.NET Core applications on SharePoint Online?

answered question

Most helpful comment

Hi,

You can't host asp.net core web app in SharePoint online, you could register it as provider hosted add-in web component(you could host asp.net core web app in azure).

How to create SharePoint Online add-in with ASP.NET Core 2.1

Lee
Microsoft SharePoint Community Support

All 5 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Unless I'm missunderstanding the question, you can't host a asp.net core application in SharePoint. In SP you can only host what is called a SP Hosted App (https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-add-ins), and that means you can麓t use Server side code in there.
If you have an asp.net core app, you can create a Provider-Hosted App (https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-started-creating-provider-hosted-sharepoint-add-ins), but you have to host your app externally (i.e: Azure web app)

If you specify a bit more about your scenario, I can try to help a bit more.

Hi,

You can't host asp.net core web app in SharePoint online, you could register it as provider hosted add-in web component(you could host asp.net core web app in azure).

How to create SharePoint Online add-in with ASP.NET Core 2.1

Lee
Microsoft SharePoint Community Support

Thanks so much guys! All roads I've researched kept bringing me back to Provider Hosted in Azure. I appreciate your feedback.

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings