#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

All Posts

Browse all blog posts and archives

All Posts (536)

Showing 201 to 225 of 536 posts (Page 9 of 22)
  • Cover image for How to fix "The listener for function was unable to start. Out of retries creating lease for partition 0"
    Published on
    Authors
    koskila

    How to fix "The listener for function was unable to start. Out of retries creating lease for partition 0"

    Here is another pretty quick one - trying to debug Azure Functions fails with a confusing error message about failing to create a lease for a partition. But as usual, the fix is (probably) simple, and this article explains what to do :) So, hey future me, finding this article on Google! 🙋‍♂️ Let's get to it, then! Problem When trying to debug your Azure Function, you get an error somewhat like this: The listener for function [function name] was unable to start. Microsoft.Azure.EventHubs.
  • Cover image for Using role claims to target WebSockets
    Published on
    Authors
    koskila

    Using role claims to target WebSockets

    This article explains a (fairly) simple solution on how you can grab role claims - or any other claims with some tweaking - and use them as the basis for targeting your WebSocket messages. Very nifty, if you ask me, without all the enterprisiness of SignalR. Talking about SignalR, another way to implement pretty much the same thing, but with all of the enterprisey goodness of SignalR, is described in this blog post: How to access claims of a SignalR user in ASP.NET Core?
  • Cover image for The simplest fixes to "500 (Internal Server Error)" from Azurite
    Published on
    Authors
    koskila

    The simplest fixes to "500 (Internal Server Error)" from Azurite

    This quick blog post explains a couple of very simple fixes - essentially, user errors - to a simple problem that you might run into with Visual Studio when developing the latest of your cool Azure bits. Well, to be fair, a few simple fixes and one heavyweight. A final ditch effort to learn to live with Azurite. But we'll get to it. So, let's embark on a journey, to try and make some sense of the whole Azure Storage emulating/exploring a side of things in your inner development loop.
  • Cover image for How to solve "Npgsql: 42883: function create_hypertable(...) does not exist"?
    Published on
    Authors
    koskila

    How to solve "Npgsql: 42883: function create_hypertable(...) does not exist"?

    Have you run into this puzzling error? It comes in a couple of flavors, but it boils down to you failing miserably when you run the create_hypertable() function on your PostgreSQL TimescaleDB database server! Annoyingly, it might mean that the whole function is missing (extension is not installed or loaded) or that your parameters are not properly parsed (an issue with your command). I know, that it sucks. I have been there. That's why I wrote this article!
  • Cover image for How to configure Azure PostgreSQL to allow Cloud Shell connections?
    Published on
    Authors
    koskila

    How to configure Azure PostgreSQL to allow Cloud Shell connections?

    I was setting up a PostgreSQL database in Azure, to be used by a cutesy little Azure Function storing telemetry from a bunch of Azure IoT Edge Devices. But when everything was (supposed to be) configured successfully, my Azure Function failed to store anything anywhere because of a missing database... Oh, right. Entity Framework can't create PostgreSQL databases, as the connection is made to an existing database - so it can't be instantiated if the database doesn't exist on the server already.
  • Cover image for Solving "invalid reference format." when trying to run almost any docker commands
    Published on
    Authors
    koskila
    Tags
    docker

    Solving "invalid reference format." when trying to run almost any docker commands

    So another simple one. (I just seem to run into all of the issues whenever I try to do the simplest thing with Docker!) Or with anything, I guess - but yeah, that's another article then. This time about any docker commands failing (no matter what command and with what arguments!) Problem I was trying to run a Docker container called Syslog-ng, and had to add quite a few parameters in order to map the volumes and ports that I needed.
  • Cover image for Joining the Omnia team!
    Published on
    Authors
    koskila

    Joining the Omnia team!

    Exciting news right after the Easter break (and a bit of a change from the usual flow of technical stuff) - I've joined the Omnia team at Precio Fishbone. Over the last 12 months, I have been working mostly on Azure IoT projects and was already debating renaming the blog. The title #SharePointProblems matches the content poorly when most of my new posts are about Docker, Azure DevOps, or Entity Framework .
  • Cover image for Upgrade from WSL 1 to WSL 2 in Windows 10 to fix Docker
    Published on
    Authors
    koskila

    Upgrade from WSL 1 to WSL 2 in Windows 10 to fix Docker

    Okay - another one of the topics that I'm explaining probably more to myself than whoever's reading this later. But that's why I write this blog, so please bear with me. 🙂 Anyway, onto the actual issue at hand! I was configuring Docker on WSL on my Windows laptop for development purposes.
  • Cover image for Azure DevOps incoming webhook just won't fire? Easy (stupid) fix!
    Published on
    Authors
    koskila

    Azure DevOps incoming webhook just won't fire? Easy (stupid) fix!

    This article documents a simple but annoying fix to an issue with Azure DevOps. In this particular case, an incoming webhook (configured as a service connection) would fail to fire, no matter what. It turns out that it's a bug in Azure DevOps - who would have thought :) Luckily, there's a fairly simple workaround available! Problem A colleague was configuring a new pipeline in Azure DevOps.
  • Cover image for How to fix Graph API returning null properties for Users?
    Published on
    Authors
    koskila

    How to fix Graph API returning null properties for Users?

    This article explains a quick fix to a small but annoying issue: Microsoft Graph API SDK persistently returning null values for most properties of your Microsoft.Graph.User objects. The issue might happen when using either the Graph API SDK or just calling the REST API directly. Both options are entirely acceptable, and in both cases, you're not getting the properties you wanted. Well, I wasn't, anyway.
  • Cover image for How to get your Azure IoT Edge runtime to use port 443 instead of using 5671 and 8883?
    Published on
    Authors
    koskila

    How to get your Azure IoT Edge runtime to use port 443 instead of using 5671 and 8883?

    Are you struggling with your Azure IoT Edge modules not receiving your Direct Method calls? Is EdgeHub reporting transient network issues? Are you seeing "Could not connect to your IoT hub: could not complete TLS handshake" errors? Are your modules experiencing constant 104 errors (connection reset by peer)? Fear not! This article explains how to fix them. Kind of. Problem We were experiencing some major issues with our customer's Edge devices.
  • Cover image for How to copy dependent assemblies to the bin folder on build?
    Published on
    Authors
    koskila

    How to copy dependent assemblies to the bin folder on build?

    This is something that comes up pretty often - when you're building an application, or maybe a library you're sharing as a NuGet package to your friends: You'll need to share a dependency or two with your particular package, and you don't want your end users having to reference those libraries, too. Sounds easy, right?
  • Cover image for "Unable to retrieve IoT Edge informationIoT Edge configuration uses an unsupported schema and cannot be displayed." after deploying from VS Code. What do?
    Published on
    Authors
    koskila

    "Unable to retrieve IoT Edge informationIoT Edge configuration uses an unsupported schema and cannot be displayed." after deploying from VS Code. What do?

    This article explains a couple of steps you might need to take when executing a Single-Device deployment from Visual Studio Code to an Azure IoT Edge device. Through a bit of trial and error, I learned quite a few things that might go wrong when VSCode is building your deployment manifest (the one that'll be hosted under "config" folder and used for the deployment - that is). Background So a while ago, I was updating the base deployment of an Azure IoT Edge device.
  • Cover image for Azure Functions suddenly throwing CORS errors when ran locally? Easy fix(es)!
    Published on
    Authors
    koskila

    Azure Functions suddenly throwing CORS errors when ran locally? Easy fix(es)!

    In this article, I'm listing the quick fixes to your Azure Functions suddenly throwing seemingly random and very unexpected CORS errors. I have run into this so many times that I had to list these (admittedly simple) fixes in order of importance purely for myself - but perhaps some of these will help you as well! 😁 CORS issues can be frustrating but the issue is usually, simple to fix - as long as you know what you are doing. But first, let's take a step back - what was the issue, again?
  • Cover image for How to install IIS (Internet Information Services) on Windows 10?
    Published on
    Authors
    koskila

    How to install IIS (Internet Information Services) on Windows 10?

    It's the roaring twenties again, cloud is the hot stuff, and nobody needs a server anymore. Right? Nope! I've been involved in more on-prem or hybrid projects in the last 12 months than in the last 3-4 years combined. There are plenty of industries and valid uses for still setting up on-prem servers. And quite often, that includes setting up IIS (Internet Information Services) on said machines. And of course, there's the classic use case - local development.
  • Cover image for How to move the Home Assistant SQLite database in Docker on Windows?
    Published on
    Authors
    koskila

    How to move the Home Assistant SQLite database in Docker on Windows?

    This article explains how you can move your Home Assistant's SQLite database files to another location by mapping them to another volume in Docker. Using Docker on Windows. Which might not be a smart move, but it's one I went with anyway. The article will explain how to do this with docker-compose, but the steps pretty much apply to vanilla docker as well. With that said - let's move on!
  • Cover image for Groups-based authorization in Blazor WebAssembly
    Published on
    Authors
    koskila

    Groups-based authorization in Blazor WebAssembly

    This article will take a look at a neat authorization option for Blazor WebAssembly - utilizing group memberships when defining policies. This isn't a tutorial or an overview of Blazor - rather, we start from you already having your Blazor WebAssembly project set up, and we'll be taking a look into modifying it to use group membership claims with policy-based authorization. This is a bit trickier than using roles, which Blazor WebAssembly already supports quite well. But before that - Blazor?
  • Cover image for Azure IoT Edge gotchas - and how to overcome them!
  • Cover image for How to fix "Cannot start service edgeHubDev: Ports are not available: listen tcp 0.0.0.0:8883"
    Published on
    Authors
    koskila

    How to fix "Cannot start service edgeHubDev: Ports are not available: listen tcp 0.0.0.0:8883"

    Here is another fun one for the books! In this article, I will explain how to fix a problem with the Azure IoT Edge dev simulator, when it fails to start due to an underlying problem with Docker not having access to your defined ports. This will probably happen to one of the ports used by the Edge Hub system module by default - 5671, 8883, or 443.
  • Cover image for How to fix "exec user process caused: no such file or directory" in Docker on Windows?
    Published on
    Authors
    koskila

    How to fix "exec user process caused: no such file or directory" in Docker on Windows?

    Another one in the series of "random things that break when you try to run Docker on Windows"! I was just minding my own business, trying to run an Azure IoT Edge custom module - a Docker container, really - locally, when suddenly everything broke and one of my Docker containers wouldn't run anymore, which broke the rest of my stuff pretty badly. Instead, it failed with a cryptic and surprising error "exec user process caused: no such file or directory" .
  • Cover image for How to run EF Core commands when your entities are in a different project from your dbcontext?
    Published on
    Authors
    koskila

    How to run EF Core commands when your entities are in a different project from your dbcontext?

    This article explains how to achieve that nice configuration where you can reuse your .NET EF Core (Entity Framework Core) entities in different projects - even being separate from the project holding your DbContexts! You might want to do this if you have a common data model between a number of very different projects - but you will still need to have a way to add new migrations, apply the current ones to a database or possibly remove deprecated migrations.
  • Cover image for How to run SQL commands in a Postgre SQL Docker container?
    Published on
    Authors
    koskila

    How to run SQL commands in a Postgre SQL Docker container?

    This article will explain how to run your arbitrary SQL commands against a Postgre SQL database running in a Docker container in Windows. That should be super simple, but since I never remember anything like this by heart, I had to google it - and turns out, either I didn't know how to google this properly or people haven't bothered to document this. So, let's fix that. But first, why did I need to do this, again?
  • Cover image for How to modify CORS settings using a .htaccess file
    Published on
    Authors
    koskila

    How to modify CORS settings using a .htaccess file

    Recently, I needed to host a web-based thingamajiggy in WordPress and needed to include a couple of custom libraries. For the sake of quick iteration, I decided to use a public FTP folder that I already had on the same server in order to host this. So I had configured a subdomain to host the files, and wanted to reference them from my WordPress site. Not quite a CDN, but something a little bit like that. Well, of course, I ran into an issue again.
  • Cover image for How to solve Vmmem consuming ungodly amounts of RAM when running WSL?
    Published on
    Authors
    koskila

    How to solve Vmmem consuming ungodly amounts of RAM when running WSL?

    This was another (luckily pretty shallow) rabbit hole down some corporate IT and weird default configurations by our favorite tech-daddy Microsoft. In this article, I will describe one possible reason for a process called Vmmem.exe consuming enough RAM to crash pretty much everything else running on your machine. But let's take a step back first - what happened?
  • Cover image for 2021 - Year Review!
    Published on
    Authors
    koskila

    2021 - Year Review!

    Well, it's been a year. It certainly does not feel like it has been a whole 12 months since I last wrote one of these, you know? I failed every single one of the goals I set for 2021, but I'm not going to lie, family takes (and deserves) so much time that it is no wonder that our hobbies suffer a bit. But still - writing these year reviews has become a tradition, so without further ado - let's get to it! 😁 Website stats
Whitewater Magpie Ltd.
© 2026
Static Site Generation timestamp: 2026-03-17T06:37:50Z