Month: December 2023
-
A wild SocketException appeared!

Today I was debugging an old web API project and suddenly an error appeared: I tried restarting Visual Studio but the error remains…considering that I didn’t change anything from the previous debugging session I decided to ask the web and after a little while searching I discovered a simple solution.…
-
Use Microsoft Graph Toolkit with SPFx and React

Microsoft Graph Toolkit aka MGT can be used inside an SPFx solution in a quick and easy way and I’m here to show you how. This sample shows how to use the Person MGT control inside a React SPFx web part, the result will be the following: Where we simply…
-
Change or remove the base /api path in Azure Functions

Cit: “Everything works and I like it, but I don’t want the /api in the URL, can you remove it?”. That was the incipit to this post. Before that I never wondered if there is a configuration or something to change or remove the /api base URL in Azure Functions.…
-
Tenant settings with SPFx and PnP JS

Tenant settings are a useful way to define settings for an SPFx solution without the need to handle all the settings in the property pane, in this way you also don’t need to configure the web part again if you need to remove it. To achieve this result we’re using…