AppRegNew - Register New App - Office 365 - Provider Hosted App
1. Access _layouts/15/appregnew.aspx
2. Generate Client ID
3. Generate Client Secret
4. Give Title
5. App Domain (Azure Web Site without https://)
6. Redirect URI (Azure Web Site with https://)
Note:
1. Update Client ID and Client Secret in the web.config of the Web Project in the Solution.
Also, Update Client ID in the AppManifest.xml of the App.
2. Web Project --> Publish
3. Import the PublishSettings from the https://manage.windowsazure.com of your Azure Web Site.
4. Publish --> This will dpeloy all dll's and other artifacts to the Azure Web Site.
5. To Consume this, we need an app (ClientWebPart) deployed to our Office 365 Site.
6. In Elements.xml of the ClientWebPart App, replace appWebUrl with your AzureWebSIte Url and also StartPage in the Manifest.xml.
7. Right Click App Solution and Hit Deploy.
Error: Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site.
Resolution:
1. Download and Install SharePoint Online Management Shell
2. Copy Powershell script from http://www.alexandervanwynsberghe.be/debugging-apps-for-sharepoint-online/ and save as .ps1.
3. Open the .ps1 in via SharePoint Online Management Shell via Run as Administrator.
Error: Error occurred in deployment step 'Install app for SharePoint': The application identifier is invalid, it must be a valid GUID.
Resolution: Update correct Client ID in the AppManifest.xml.
1. Access _layouts/15/appregnew.aspx
2. Generate Client ID
3. Generate Client Secret
4. Give Title
5. App Domain (Azure Web Site without https://)
6. Redirect URI (Azure Web Site with https://)
Note:
1. Update Client ID and Client Secret in the web.config of the Web Project in the Solution.
Also, Update Client ID in the AppManifest.xml of the App.
2. Web Project --> Publish
3. Import the PublishSettings from the https://manage.windowsazure.com of your Azure Web Site.
4. Publish --> This will dpeloy all dll's and other artifacts to the Azure Web Site.
5. To Consume this, we need an app (ClientWebPart) deployed to our Office 365 Site.
6. In Elements.xml of the ClientWebPart App, replace appWebUrl with your AzureWebSIte Url and also StartPage in the Manifest.xml.
7. Right Click App Solution and Hit Deploy.
Error: Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site.
Resolution:
1. Download and Install SharePoint Online Management Shell
2. Copy Powershell script from http://www.alexandervanwynsberghe.be/debugging-apps-for-sharepoint-online/ and save as .ps1.
3. Open the .ps1 in via SharePoint Online Management Shell via Run as Administrator.
Error: Error occurred in deployment step 'Install app for SharePoint': The application identifier is invalid, it must be a valid GUID.
Resolution: Update correct Client ID in the AppManifest.xml.
No comments:
Post a Comment