Showing posts with label SharePoint Error. Show all posts
Showing posts with label SharePoint Error. Show all posts

Tuesday, 21 February 2023

Failed to Install SharePoint Generator in Setting up MS Teams Tab

Recently, I was learning how to create an app that we can use as tab in MS Teams. Microsoft has provided a simple tutorial to get things started. 

Link - https://docs.microsoft.com/en-us/microsoftteams/platform/sbs-gs-spfx?tabs=vscode%2Cviscode


I installed the pre-requisites as mentioned in the blog. But When I created a tab app with SPFx, I got error "Failed to Install SharePoint Generator".




Resolution:

The issue with the tutorial is that it provide details - Use the Node.js version 14 or 16 LTS release version of Node js. It has directly provided link to the Node Js Home page which will showcase their latest version for download. You need to scroll down to see previous release and in that you need to find out the 14 LTS version.

When I go deep in the error log, I found out that the Node vesrsion supported should be 14.14.0 to 15.0.0. Once I installed the correct version I was able to complete the app creation process.

I am sharing this information as I am not able to see any way to contact Microsoft for updating the tutorial. Hope if someone needs help, this will provide some help.



Tuesday, 12 January 2021

Error occurred in deployment step 'Recycle IIS Application Pool': Invalid namespace SharePoint

Issue:

Recently, we were developing a custom webpart for SharePoint 2019 On-Premise. We got below error while deploying the solution:

Error occurred in deployment step 'Recycle IIS Application Pool': Invalid namespace



Analysis:

We have face this issue in past . We thought we are having issue in .Net framework of the project. We tried with reduce the .Net framework to 4.5. But that didn't solve the issue this time. Then we google the issue and found out there were some configuration changes we need to do in the development environment. 


Solution:

We found out that we need to add "IIS 6 WMI Compatibility" feature. Please follow below steps to add the same:


If you are using windows server, go to server manager.  

  • Click on “Add Roles and Feature”

 


  • It will open “add feature” dialog. Click next till you reach “Server Roles”.


  • In that, expand “Web Server (IIS)”






  • In that expand “Management Tools”

 


  • In that expand “IIS 6 Management Compatibility”

 


  • In that, check “IIS 6 WMI Compatibility”, “IIS 6 Metabase Compatibility” & “IIS 6 Management Console” and click Next.

 


Note - In my case the first two were installed. If it is not installed in your side, it will show as not checked.

  • Click Next in feature selection.

 


  • Click Install in confirmation installation screen.

 


  • It will start installing the feature. Wait for the completion.

 


  • Click close once done.

 


  • Restart the visual studio and try to deploy the project and it will deploy successfully. 

 


If you are using Windows operating system machine, then you can follow below steps to install “IIS 6 WMI Compatibility”:

  • Go to Control panel.

 


  • Click on Program.

 


  • Click on “Turn Windows Feature on or Off” (you will require admin rights for this).
  • It will open feature dialog. 
  • Open Internet Information Services.
  • Open Web Management Tools.
  • Open IIS 6.0 Management Compatibility.
  • Click to select the IIS 6 Metabase and IIS 6 configuration compatibility, IIS 6 WMI Compatibility, and IIS 6 Management Console check boxes.

 


  • Click OK.

You can set up this using powershell as well. 

Follow below steps for the same:

  • Open “Windows PowerShell” in administrator mode.
  • You need to first import server manager module. 
  • Then you can run command to run feature. 

PS C:>Import-Module servermanager

PS C:> Add-WindowsFeature Web-WMI

The output will look like below: