Categoria: Programmazione

  • MAUI versione rilascio

    Finalmente è uscita la versione finale di MAUI per Visual Studio 2022. Per installare basta l’anciare l’installer di VS e selezionare il nuovo workload “MAUI”. Importante se si ha la versione preview di .Net 7, la compilazione dei progetti MAUI non va a buon fine, bisogna rimuovere .Net 7 perché tutto funzioni.

  • Parsing dei parametri C# e VB.NET

    Parsing dei parametri C# e VB.NET

    Dovete realizzare una applicazione console in ambiente .Net, con parametri in riga di comando? Non perdete tempo a creare routine custom per verificare la presenza dei parametri, lasciate fare tutto a CommandLineParser. L’installazione è semplice da NuGet. Basta fornire una classe modello con gli opportuni metadati e richiamare il parser, in output otterrete l’oggetto con […]

  • MSSQL Server 2019 on Docker e Full Text Search

    MSSQL Server 2019 on Docker e Full Text Search

    Per impostazione predefinita, l’immagine contenuta nel container MSSQL Server 2019 non contiene il servizio Full Text Search. Per poter utilizzare questo servizio bisogna creare un’immagine personalizzata. Per fortuna ci sono immagini già preparate per MSSQL 2019, una di queste è presente qui: https://schwabencode.com/blog/2019/10/27/MSSQL-Server-2017-Docker-Full-Text-Search Utilizzando come base di partenza lo script presente al link, basta cambiare […]

  • Docker e WSL2

    Docker e WSL2

    Uno dei framework più importanti che si sta imponendo per la distribuzione delle applicazioni è senza dubbio Docker. Docker, in poche parole, rappresenta l’evoluzione delle Virtual Machine per la distribuzione delle applicazioni in maniera semplice è isolata. Fino a pochi anni fa, il modo più semplice per integrare su una sola macchina più applicazioni era […]

  • Docker 2.1.7.0 fail to start

    Docker 2.1.7.0 fail to start

    Docker on Windows use Hyper-v virtual machine to run Linux Container. But with the new version of Windows there is the WSL (Windows subsystem for Linux). The new version WSL2 currently in beta, is used by the Edge version of Docker to run Linux Container without the virtual machine. This feature is an optional settings […]

  • Docker and System.Net.Http

    Docker and System.Net.Http

    On my developing machine the installer for Docker for Windows hangs forever. The problem occur from stable version 2.1.0.1 to 2.1.0.5. After a little inspection, i discovered that the installer is waiting for the “Docker Desktop Service”. The log for the service show the error: …cannot load assembly ‘System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ … For the […]

  • Docker and network on Windows

    Developing and testing Docker container can be problematic on Windows 10 if you have different type of container. Suppose that you have one Linux container and one Windows Container that need to communicate, the simple solution to communicate through host ip address (Docker bridge actually is not working in mixed mode); but if your IP […]

  • FileBeat, IIS LOG e X-Forwarded-For

    FileBeat, IIS LOG e X-Forwarded-For

    FileBeat è il ben noto log shipper di Elasticsearch per caricare log dalle più disparate fonti. Uno dei moduli di FileBeat serve a caricare i file di log di IIS. Bisogna ricordare però che i file di log di IIS possono avere un numero variabile di campi, liberamente selezionabili, oltre a poter aggiungere dei campi […]

  • IISNODE and encryption

    IISNODE and encryption

    IISNODE and INternal server error

  • JSON Web Token and RSA with C#

    JSON Web Token and RSA with C#

    JWT token with RSA signing cipher