Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Author: Iain 'Cutty' Carlin

Serializing List<Dictionary<string, object>> not working in dotnet core 8.0

Posted on August 22, 2024August 22, 2024 by Iain 'Cutty' Carlin

My previously working code (dotnet 6.0) that was serialising a complex object, stopped producing Json output at the API controller. The object(s) are defined as:

    public class ReportResultsDTO
    {
        public string ReportTitle { get; set; }
        public List<ReportResultDTO> Results { get; set; } = [];
    }

    public class ReportResultDTO
    {
        public string Title { get; set; }
        public List<Dictionary<string, object>> Data;
    }

Turns out that because System.Net.Text is now used by default (rather than Newtonsoft.Json) it doesn’t handle converting List<Dictionary<string, objectto Json. I tried converting it to a Json string first and outputting that, but the returned string was full of \” characters to escape the string(s).…

+

HTTP Error 500.30 ASP.NET Core app failed to start

Posted on August 21, 2024 by Iain 'Cutty' Carlin

Windows event log had this error message:

Application '/LM/W3SVC/7/ROOT' with physical root 'C:\inetpub\wwwroot\scwebgroup.com' hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information.

Go this error message in a dotnet core project. App would run fine in IIS Express and Kestrel but not on IIS proper. After trying many of the suggested solutions on the web, I discovered the issue was being caused by the entry:

<environmentVariable name="APIDISCOVERY_FILEPATH" value="D:\VersaDev.SRS.IdentityServer\VersaDev.SRS.IdentityServer\obj\Debug\net6.0\ApiEndpoints.json" /

in the web.config file. Turns out the failure was down to updating the app to net8.0 which caused a conflict wit this line. Commented out the line and the problem went away.…

+

Entity Framework Migrations and Case Sensitivity in MariaDb

Posted on August 20, 2024 by Iain 'Cutty' Carlin

I did a ‘database first’ reverse engineering of an existing database to create a model for Entity Framework.

I then tried to use that model to create a migration and subsequent new database on a MariaDB instance running under Windows.

I kept getting an error message “Table ‘__efmigrationshistory’ already exists” whenever I ran “dotnet ef database update”. I suspected the issue was to do with case sensitivity of the table name(s).

Things I tried to resolve the issue:

  • Manually rename the table in the database to lower case.
  • Change the lower_case_table_names setting to 2 in my.ini (location is set in the windows service settings.
…
+

Books I read in 2023

Posted on January 1, 2024January 1, 2024 by Iain 'Cutty' Carlin

2023 was a big year for me for reading. I haven’t done that much for over a decade, so, I thought I would list off all the books that I read in 2023 (or at least the ones that I can remember):

  • I got right into John Scalzi after hearing him speak on the New Scientist podcast about Starter Villan:
    • Starter Villan
    • The Kaiju Preservation Society
    • The Collapsing Empire
    • The Consuming Fire
    • The Last Emperox
  • The Ulysses Contract – Michael Kemp
  • Outlive (The Science and Art of Longevity) – Dr Peter Attia
  • The Miracle Morning – Hal Elrond
  • Mindset – Carol Dweck
  • Aboriginal Myths, Legends and Fables – A.
…
+

Happy New Year 2024

Posted on January 1, 2024August 21, 2024 by Iain 'Cutty' Carlin

What boring old farts we have become when we are in bed asleep at 9:30pm on New Year’s Eve. Woke up briefly at 12:05am to the sound of fireworks then drifted back off to sleep. Welcome 2024, looking forward to seeing what this year brings. Happy New Year everyone.…

+

Constrained image resizing in OneNote – one of these things is not like the other!!

Posted on September 19, 2022September 19, 2022 by Iain 'Cutty' Carlin

To constrain the image resizing to the same ratio in OneNote, you just drag the corners of the image. On just about every other application (Adobe, Visio, Word etc.) you hold down the shift key when dragging to constrain the ratio.

I could live with this in OneNote, EXCEPT that, when you hold down the shift key in OneNote it actually does the reverse and does a free resize….another Microsoft non-standard…..…

+

Lawson – A life in words and music

Posted on September 5, 2022 by Iain 'Cutty' Carlin

Friday 2nd September 2022, Adelaide Festival Theatre. Adelaide Symphony Orchestra + John Schumann and the Vagabond Crew with Richard Roxburgh as Narrator.

Overall I enjoyed it. I’m a big John Schumann fan and I’ve seen this show (without the ASO) three times now. I reckon the Lawson album is some of his best work. That said, the second half of the show was much better than the first. I thought the band overwhelmed the orchestra in the first bit – I was really struggling to pick out the orchestral instruments apart from the percussion section.

Not sure whether they were given a heads up, but pretty sure they turned the band down post interval.…

+

Xamarin debugging Android from Virtual Box

Posted on March 22, 2021 by Iain 'Cutty' Carlin

Background/Environment

Virtuality

I like to develop inside a Virtual Machine. The advantages of this are:

  • The environment is portable, so I can move it between machines;
  • I can backup and/or snapshot machines so can recover quickly in the event of some failure or error;
  • I can set up different machines for different workflows (e.g. one for API dev, one for Mobile dev etc.)
  • I can replace my physical device without going through the pain of rebuilding my development environment, and;
  • I can use any OS on my physical device

I use VirtualBox to host my guest machines – I’ve tried Microsoft Hyper-V, but for whatever reason it just lacks the performance and flexibility that I’ve found with VirtualBox.

…
+

Instrument Making Course

Posted on February 3, 2021March 22, 2021 by Iain 'Cutty' Carlin

I learned most about guitar making by doing the Instrument Making course at Tonsley TAFE. Unfortunately, TAFE have for some strange reason decided to discontinue that course (I thought it was very popular…go figure?!)

Anyway, Michael Snowden, who taught that course, has now set up his own business offering instruction on instrument making. Check out his website here: Adelaide Artisan Instrument Making. Guitar Making for everyone – Wood & Strings – Adelaide Artisan Instrument Making…

+

Jigging, plating and sanding

Posted on December 19, 2020 by Iain 'Cutty' Carlin

So despite my lack of motivation, I did make some progress this week.

I thought I had finished making jigs, having completed acoustic number 4 entirely in my home workshop…apparently not.

Number 4 had a dovetail joint for the neck, for which I bought a template from Stew Mac and build my own device for using it. Nothing wrong with the jig or template, but I swear I’m not doing another dovetail joint, they are just too difficult!

So for this build, I’m doing straight mortise and tenon joint with bolt on neck.

But, I needed the template to cut the mortise and tenon.…

+
  • 1
  • 2
  • 3
  • 4
  • …
  • 10
  • Next

Recent Posts

  • Books I read in 2025
  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024

Categories

  • Chryslers (1)
  • Cutty's Blog (13)
  • Lutherie (38)
  • You Learn Something New Every Day (44)
©2026 Cutty | Powered by Superb Themes