Skip to main content

Posts

SharePoint Provider Hosted App throwing 401 Unauthorized on newly created Office 365 tenants

I was working on some new tenant with the clients. There we had some requirement to create new SharePoint Provider Hosted App with App-Only principals. It was created successfully & working fine in my older tenant.  After testing of it, I deployed on newly created tenant where it has started showing issues : I have registered a support ticket to Microsoft SharePoint team . They tried to support with lots of meetings & collected logs but they have not given the solution. After did lots of research , I found the solution from Microsoft Q & A site . Lots of SharePoint experts are facing same issue. They have mentioned some workaround as well. They are asking to run a command : Set - SPOTenant - DisableCustomAppAuthentication $false After running this command, every thing has started working.  Just one thing, You have to use latest SharePoint Online Management Shell.

Not able to load Sharepoint online PowerShell module after installation

I did installation of SharePoint Online PowerShell Module but it was throwing error when I was using it : Error Detail: [PS] C:\Windows\system32>Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking Import-Module : Could not load type 'Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType' from assembly 'Microsoft.Online.SharePoint.Client.Tenant, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. At line:1 char:1 + Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChec ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Import-Module], TypeLoadException     + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand I verified that the module is installed: [PS] C:\Windows\system32>Get-Module -ListAvailable -Name "Microsoft.Online.SharePoint.PowerShell" | ft ver...

Deploy SPFx production solution files in specific folder with in container on Azure CDN

Hi, When we creates SPFx solution and deploying the build files on Azure CDN, it deploys all the files in a container which you mentioned in "deploy-azure-storage.json" file. This is bit messy to see. Because you can deploy multiple solution on the same container. But what if you want to manage solutions by Solutions or By versions. Here is the way. I will show you how to deploy SPFx production deployment files in a specific folder in the Container on Azure CDN. First you have to deploy some gulp task packages in dev-dependencies npm install gulp-util gulp-deploy-azure-cdn --save-dev Now you need to make following changes in the "gulpfile.js" file : const deployCdn = require('gulp-deploy-azure-cdn'); const gutil = require('gulp-util'); gulp.task('deploy-azure-storage-folder', function () {   return gulp.src('temp/deploy/**/*', {}).pipe(deployCdn({       containerName: '<<Your Container Name>>', // Container...

How to use AngularJS in SharePoint Framework (SPFx)

In this post, I will show you how to use AngularJS in SPFx. I have divided the steps for better understanding. Here are the steps: 1.        Create SPFx Project with No JavaScript Web Framework 2.        Add Dev Dependencies 3.        Remove some Dependencies 4.        Run “npm install” 5.        Modify “config.json” 6.        Create folder called “app” under “/src/webparts/ angularjsWebpart/” and Create following files in “app” folder a.        Greetings.component.html b.        Greeting.module.css c.        Greetings.component.ts d.        Greetings.service.ts (If required) e.        app.module.ts 7.     ...