Sunday, December 22, 2019

Download deployed WSP Solutions from SharePoint farm

Leave a Comment
While working with for a client, whom project previous vendor left in middle without proper documentation, project plan & updated source code. Only option left for me is to download deployed WSP Solutions from Production farm and go through deployed Dll through tools like ILSpy etc. To download we used following powershell commands: $farm=Get-SPFarm $file=$farm.Solutions.Item("DEPLOYED_WSP_NAME.wsp").SolutionFile $file.SaveAs("C:\SomeDownloadLocation\DEPLOYED_WSP_NAME.wsp...
Read More

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

Leave a Comment
While trying to run SharePoint powershell on vendor VM, found this issue: " The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered" Solution: We need to run with domain account by which we setup SharePoint farm and run following command: Add-SpShellAdmin -username Domain\username. Above command set appropriate permission automatically and this can be verified by Get-SPShellAdmi...
Read More

Sunday, August 25, 2019

Configure Gmail as SMTP for SharePoint 2016 server to relay messages

Leave a Comment
This blog post is about configuring gmail as smtp for SharePoint 2013/2016/2019 to relay email messages on behalf of SharePoint. First of all we need to configure SMTP server on Windows server (Currently I am using Windows Server 2016 Standard) If IIS Manager 6 feature/role isn't setup first we need to set it up from Add server roles & features. Once configured, open IIS 6 Manager and right click on SMTP Virtual server and click...
Read More

Wednesday, August 7, 2019

SharePoint: How to verify current logged in user belong to which SharePoint Group

Leave a Comment
There was a scenario, we during our development cycle faced multiple time that we need to verify currently logged in user in SharePoint for its role or SharePoint Group. As based on role we have different business rules & business process automation. So following is server side code for verifying currently logged in user (either Active directory based or form based authtentication) belong to which SharePoint Group: //Let user be authenticated first into SharePoint SPClaimsUtility.AuthenticateFormsUser(      ...
Read More

Monday, July 15, 2019

Which application pool id link with which worker process (w3wp.exe)

Leave a Comment
Often there are times when we need to debug our application by Debug-> attach to process option in visual studio. Here we need to figure out which application pool is currently linked with our application. So to figure out run following command: C:\Windows\System32\inetsrv>appcmd list wp...
Read More

Tuesday, June 11, 2019

How to enable Anonymous access for SharePoint 2010/2013/2016/2019 sites

Leave a Comment
In this post I will share my experience for making a SharePoint 2016 web application/site anonymous. The procedure is very much the same which we used to have for SharePoint 2010/2013 web application and exactly same approach need to be taken for SharePoint 2019 application. Extending web application: Well it depends on methodology and practices, but I used to extend current web application and apply anonymous access for extended application...
Read More

Monday, June 10, 2019

How to configure multilingual site: variation in SharePoint 2013/2016/2019

1 comment
In this post I will quickly walk through steps we used to perform while creating multilingual site in SharePoint 2016. Same steps need to be followed for SharePoint 2013 & SharePoint 2019. Variation brief: Variations feature is provided by Microsoft in SharePoint to provide & propagate multilingual content management through SharePoint application. In simple term variation is managed through labels (subsite for each language). Step...
Read More

Wednesday, May 29, 2019

My journey for upgrading web applications from SharePoint 2013 to SharePoint 2016: Step by step

Leave a Comment
I know its probably a bit late for upgrading from SharePoint 2013 to SharePoint 2016 as it should be upgraded to 2019. However, 2019 SharePoint applications upgrade I will write later on. Recently did a client project upgrade from SharePoint 2013 to SharePoint 2016, so here is my journey & steps which I followed: Step 1: As normal procedure create a new web application from SharePoint Central Admin Step 2: From managed content databases,...
Read More

Tuesday, May 21, 2019

How to convert Windows Server 2016 Evaluation to Licensed version

Leave a Comment
Problem: In previous blog post I have blogged about how to change SQL Server License. Similarly, the client now wants to upgrade/update its Windows Server 2016 Evaluation license. Run winver.exe to verify current version: Solution: So to cut short discussion we switch to our old buddy Dism.exe, so on command prompt or power shell with elevated privileges we need to run following command: dism /online /set-edition:ServerStandard...
Read More

Monday, May 20, 2019

SQL Server: Once Evaluation period has expired, How to activate SQL Server or change product key

Leave a Comment
Problem Statement: For one of my client we used SQL Server 2016 Evaluation key which give 6 months time period to evaluate SQL Server and its features. As per discussion with client, they will in the meantime do the procurement process (usually its bit lengthy, hectic & bureaucratic process in Middle East) to procure Enterprise License as per business need. However, in the meantime our project has completed and we moved on to next...
Read More

Wednesday, April 17, 2019

(Solved) .Net core web api project with vscode keep giving HTTPS endpoints can only be configured using KestrelServerOptions.Listen()

Leave a Comment
Problem: While working for Angular project with .net core web api using Json web token for angular security, we might get exception in program.cs file of Web API of project developed in .net core public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } While debugging project in vscode to run web api we find following exception: asp.net core web api System.InvalidOperationException: HTTPS endpoints can only be configured using KestrelServerOptions.Listen()....
Read More

Sunday, April 14, 2019

How routing works in Angular (Brief overview)

Leave a Comment
Following is brief pictorial illustration related to angular routing: 1: If Url is changed either through router link or directly changed in address bar 2: It verifies if path exist & match in rotues.ts or routing related configuration file. It also check if routes require redirect as per configuration provided in routing file. 3: Also to check if there are process guard related to activate or deactivate ...
Read More

Thursday, March 21, 2019

Angular 2 Events/Hooks Lifecycle

Leave a Comment
Following are brief of Angular 2 and onward related events/hooks life cycle for basic illustration: Lifecycle Events/ Hooks  Description 1 ngOnChanges Fires before ngOnInit & when dataBound property changes 2 ngOnInit Fires at on component initialize and after ngOnChanges 3 ngDoCheck Fires at every change detection cycles 4 ngAfterContentInit Fires after inserting content [ngContent] ...
Read More

Wednesday, March 20, 2019

Angular Application Execution Cycle Summary

Leave a Comment
I came across a question about what is execution cycle of angular application in summarize manner. So following illustration will help us better understanding the execution flow of angular app: Main.ts runs first Based on definition of Main.ts, it will load "app.module.ts" which actually define "AppModule" For "AppComponent" defined in "app.module.ts", this will load "app.component.ts" A custom HTML element "app-root"...
Read More

Angular/Ng command to run node server for testing app

Leave a Comment
While developing angular application through VS Code or any editor of choice, the command to run Nodejs server in order to test web application/ app in browser we need to run following command: ng serve This will compile angular application and deploy it on local Nodejs server mostly configured at http://localhost:4200/ Whenever we make any changes to any *.ts, index.html or css file & save it, this will recompile angular...
Read More

ng command to create new component

Leave a Comment
While using Angular 7.x if we need to create new component we use following command at terminal (I am using VS Code) ng generate component "component name" Above command will generate new component along with its folder under app with component name. Also it will add entry to app.module.ts file under import section & under NGModule section as well. However, if we need to create new component without create a separate folder for component (can be used as nested component) then in terminal window first I need to get into...
Read More

Monday, March 18, 2019

The Angular Ecosystem

Leave a Comment
There has been lots of discussion going on related to Angular and its ecosystem. With the way changes & updates going on, this ecosystem or components on which angular ecosystem being rely it has been revolutionized as well. Following is simple info graphic representation of Angular Ecosystem, which will help in understanding and learning angular framework to implement an enterprise level application: ...
Read More