Forum Discussion
keertana10
Mar 03, 2021Copper Contributor
Uploading the app into SharePoint ...
We are trying to deploy the app in the SharePoint , but while we upload file in the app catalog it result in the error(Invalid SharePoint App package. Error: Part URI is not valid per rules defined i...
Don Kirkham
Mar 03, 2021MVP
Can you give more details as to how the app package was built? Is this an SPFx solution, using the "gulp package-solution --ship" command? Are the assets included in the package or hosted somewhere else?
- keertana10Mar 03, 2021Copper Contributor
Yes, it is a SPFx solution we are trying to host it in our environment and gulp package-solution --ship command is usedDon Kirkham
- Don KirkhamMar 03, 2021MVPFor SharePoint Online:
The default settings in SPFx is to host the web part assets in SharePoint Online. This link details how to ensure your environment is set up for hosting: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/hosting-webpart-from-office-365-cdn
If you want to host the web part somewhere else, the following link describes how to set up an Azure CDN solution. The section that shows how to configure the web part to use this destination is here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/deploy-web-part-to-cdn#configure-the-solution-not-to-use-default-settings
You should be able to change those settings for your hosting environment.
If your solution is for SP2016+, you can search in those same areas of docs.microsoft.com for solutions.
I hope this helps.