How to replace and reload application settings changes in .NET?
#SharePointProblems
by Antti K. Koskela
5M ago
This article explains a curious workaround that I figured out. In case you need a way to force appsettings s changes to be reflected in some libraries you need in your application, even if they don’t support any configuration after application startup. Problem Normally, a .NET application loads the configuration – environment variables, appsettings.json files, wherever your secrets come from and all the other good stuff – when it’s started, and it’s good with that. If you’re being fancy, you can also use IOptionsSnapshot –… The post How to replace and reload application settings changes in .NE ..read more
Visit website
How to store a complex object as JSON in a PostgreSQL database using Entity Framework (Npgsql) ?
#SharePointProblems
by Antti K. Koskela
5M ago
Okay, that’s title and a half. But let’s see – what are we actually doing and why? In my particular case, I had to store a Dictionary<string, string> to a Postgres database. By default, that’s not something Entity Framework handles. But as usual, there’s a way around that – and the same concept we’ll take a look at below should work for other complex data types or objects too! Solution Okay, so let’s jump into it! Here’s what you need to add to your different… The post How to store a complex object as JSON in a PostgreSQL database using Entity Framework (Npgsql) ? by Antti K. Koskela app ..read more
Visit website
How to configure FQDN on a workgroup computer?
#SharePointProblems
by Antti K. Koskela
5M ago
My ASUS AC-68U requires an external server with a Fully-Qualified Domain Name for any logging to be persisted beyond a reboot of the router. And since the router regularly needs rebooting (and will usually just automatically reboot if any errors are encountered), logging errors without them being persisted after a reboot is pretty useless. So, a computer with an FQDN I’ll need. But I don’t have a domain for my computers at home, so I don’t really have Fully-Qualified Domain Names, either. Problem What an… The post How to configure FQDN on a workgroup computer? by Antti K. Koskela appeared firs ..read more
Visit website
ASUS AiMesh tips and tricks
#SharePointProblems
by Antti K. Koskela
5M ago
This post is meant to gather my tips and tricks for surviving life with ASUS AiMesh wifi routers. Draw on my experience so that your life would be easier :) A quick word of advice before you proceed, though: you’ll save yourself from a lot of trouble by buying actual networking gear instead of this flea market discount garden-variety rubbish. I got my ASUS AiMesh routers (RT-AC68U, RT-AC66U B1 and RT-AC1750) at a deeply discounted price, and I still don’t think they’ve been worth the… The post ASUS AiMesh tips and tricks by Antti K. Koskela appeared first on #SharePointProblems ..read more
Visit website
How to use Microsoft.Online.SharePoint.PowerShell with PowerShell 7?
#SharePointProblems
by Antti K. Koskela
6M ago
This article explains an annoying extra step (or a really nifty trick – depending on how you choose to look at it!) you can take to make sure your PowerShell 7 is able to import a module that was developed for .NET Framework, instead of .NET Core. This is super helpful when you run into weirdness with some of the more, let’s call them CLASSICAL, PowerShell modules. Such as Microsoft.Online.SharePoint.PowerShell. Problem I use PowerShell 7 as the default shell in my Windows Terminal. It doesn’t… The post How to use Microsoft.Online.SharePoint.PowerShell with PowerShell 7? by Antti K. Koskela ap ..read more
Visit website
How to fix “The website does not support SharePoint Online credentials. The response status code is ‘Unauthorized'”
#SharePointProblems
by Antti K. Koskela
6M ago
While running some SharePoint Online -PowerShell commandlets, or connecting to a SharePoint Online site from your app, you get the following (or similar) error about your SharePoint Online credentials being unauthorized for something you should definitely be authorized to do: Cannot contact web site ‘https://[tenant]-admin.sharepoint.com/’ or the web site does not support SharePoint Online credentials. The response status code is ‘Unauthorized’. And that’s not all – by digging into the full error message, you find the underlying internal error: MSDAVEXT_Error=917656; Access+denied.+Before+open ..read more
Visit website
How to refresh all Az CLI subscriptions?
#SharePointProblems
by Antti K. Koskela
6M ago
This article explains how to “reactivate” all of your accounts stored in your az account by refreshing your sessions. You might need this if you suddenly run into a script that needs to iterate all of your subscriptions without you being there to sign in to each one of them. Having a recently active session for each will help, and you can run your massive script unattended overnight or something like that :) But let’s take a step back – what’s the issue we’re dealing… The post How to refresh all Az CLI subscriptions? by Antti K. Koskela appeared first on #SharePointProblems ..read more
Visit website
How to fix another weird Entity Framework Core dependency issue?
#SharePointProblems
by Antti K. Koskela
6M ago
Okay – so that’s a non-descriptive title if I’ve ever written one, and I apologize for that! But I couldn’t figure out a way to shorten the error when “Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore” is referencing “Microsoft.AspNetCore.Http.Abstractions”, and even though you’re not referencing that dependency directly, you get an error where you have both 3.x and 5.x or 6.x major versions of the assembly in use. Which, in layman’s terms, is no good. What a weird case – not something you’d usually expect to run into! But as usual,… The post How to fix another weird Entity Framework Core ..read more
Visit website
How to CTRL+ALT+DEL into RDP?
#SharePointProblems
by Antti K. Koskela
6M ago
This is going to be another one of those really quick and short reminders to myself. I don’t use remote desktop connections that much, when I occasionally need to – and the computer asks me to press Control, Alt and Delete for whatever reason, I’ll just hit them and bring up the stupid system screen on my own laptop. Yes, apparently I’m that guy. Anyway, let’s… Uh.. Get to it, then? How to CTRL+ALT+DEL into your RDP window instead of your own machine? CTRL+ALT+END References… The post How to CTRL+ALT+DEL into RDP? by Antti K. Koskela appeared first on #SharePointProblems ..read more
Visit website
How to roll back an Azure IoT Edge layered deployment?
#SharePointProblems
by Antti K. Koskela
7M ago
Ever wondered how you could roll back the latest layered Azure IoT Edge deployment? I have – it’s actually pretty useful. But what for? Well, perhaps it’s useful as the last step or whatever interesting Azure DevOps pipelines you have to deploy changes to an Edge device, run tests, and then remove the deployment. Or maybe you could have it as an optional parameter in case you want to do a dry run for the deployment – see if everything works well but not actually… The post How to roll back an Azure IoT Edge layered deployment? by Antti K. Koskela appeared first on #SharePointProblems ..read more
Visit website

Follow #SharePointProblems on Feedspot

Continue with Google
OR