Disable Visual Studio 2022 IIS security attach warning

Running Visual Studio as administrator is needed to host your web project in IIS. Everytime the debugger is started the “Attach Security Warning” confirmation dialog appears. Modify the registry to disable this.  Follow these steps to modify the private registry file (privateregistry.bin): 1. Close Visual Studio 2022. Start regedit.exe and […]

Lees meer

How to switch the active PostgreSQL cluster

A how to of switching the active PostgreSQL cluster version to make it bind to port 5432. Let’s define the active PostgreSQL cluster as the one that binds to port 5432 and having multiple versions running in Ubuntu. Check with pg_lscluster what is running: And what is the active PostgreSQL […]

Lees meer

Azure Portal Dashboard – Monitoring in een oogopslag

In de Azure Portal is het dashboard een krachtige tool om de status van de systemen te monitoren. Het dashboard is volledig naar wens aan te passen. Voor vrijwel alle systeemonderdelen van Virtual Machine tot AppService is een widget of grafiek op het dashboard te plaatsen. Hieronder een voorbeeld van een […]

Lees meer

The mystery of hanging batch script until keypress

Since Windows 10 and Windows Server 2016 I noticed that sometimes a batch or powershell script is hanging or freezing in the middle of an operation. It continues if the escape key is pressed. This also happens to my console application. So, I run it in debug mode from Visual […]

Lees meer

.NET event: From The Death Star to Open Source .NET Core by Scott Hanselman

Ongeveer 700 .NET enthousiastelingen kwamen 2 februari 2019 naar Den-Bosch om het .NET event bij te wonen georganiseerd door de .NET Zuid User Group en gesponsord door ABN AMRO Asset Based Finance. Scott Hanselman sprak anderhalf uur in Theater de Parade. Wat aan bod kwam is hoe Microsoft druk bezig is met de transitie naar […]

Lees meer

EDI X12 940 mapping naar XML met C#

EDI is een industriestandaard voor elektronische uitwisseling van business transacties. Het EDI 940 bestand beschrijft een Warehouse Shipping Order in het supply chain proces.   Doel Om het door de eindklant aangeleverde EDI X12 940 bestand te kunnen verwerken moet het vertaald worden naar een XML-formaat wat het WMS systeem gebruikt. Voorbeeld […]

Lees meer

Remove illegal characters from xml

If the exception ‘System.ArgumentException: hexadecimal value is an invalid character’ is raised while reading or writing xml make sure the xml contains no illegal characters You can strip these illegal characters with this method.

Lees meer

.NET WPF: Aansturing van de printer bin

Het printen vanuit C# .NET WPF voorziet in veel flexibiliteit. Echter het aansturen van een specifieke printerlade (bin of tray genoemd) is niet heel eenvoudig. Hiervoor moet gebruikt worden van printQueue.GetPrintCapabilitiesAsXml() methode. Uit de xml is af te leiden welke bins aanwezig zijn. Hieronder C# code om op te vragen […]

Lees meer

WPF PDF viewer en printing

Voor een project heb ik een C# .net oplossing nodig voor PDF documenten die server side gegenereerd worden en in de WPF client getoond en geprint worden. Een vereiste is dat het document in de WPF applicatie getoond wordt. En ook silent printen mogelijk is ofwel printen zonder weergave van […]

Lees meer