I could not quickly find a default way to get ASP.NET core to process URLs of static files without extensions, so I implemented this untested hack. This addresses the limitation that a request for /page.html would return the content of the static file but a request for /page would return HTTP 404, Not Found. ThisContinue reading “-Default Static File Extensions in ASP.NET Core”
Author Archives: John West
-Contentstack SaaS Headless CMS UI Extension Hosting
This short blog post explains some differences between Contentstack hosting and external hosting of custom user interface extensions to its headless content management system. Update 15.Dec.2025: After years of frustration with WordPress, I am finally abandoning this blog. The content will likely stay here for some time, but new content will appear here: As describedContinue reading “-Contentstack SaaS Headless CMS UI Extension Hosting”
-Use a Widget to View Entry JSON in the Contentstack SaaS Headless CMS
This blog post explains how you can use a widget to view the JSON representation of an entry in the Contentstack SaaS headless CMS user interface. Update 15.Dec.2025: After years of frustration with WordPress, I am finally abandoning this blog. The content will likely stay here for some time, but new content will appear here:Continue reading “-Use a Widget to View Entry JSON in the Contentstack SaaS Headless CMS”
-Read-Only Custom Field for Contentstack SaaS Headless CMS
This blog post explains how you can add a custom field to the Contentstack SaaS headless content management system, in this case to render a message set by code to the CMS user as a read-only HTML element while editing the entry that contains that value. You can use this technique to provide guidance toContinue reading “-Read-Only Custom Field for Contentstack SaaS Headless CMS”
-Contentstack SaaS Headless CMS .NET SDK Exception Management
This blog post explains how you can access information about errors that occur when using the .NET SDK for the Contentstack SaaS headless content management system. Update 15.Dec.2025: After years of frustration with WordPress, I am finally abandoning this blog. The content will likely stay here for some time, but new content will appear here:Continue reading “-Contentstack SaaS Headless CMS .NET SDK Exception Management”
-Code Dump: Contentstack .NET Static Site Exporter
This blog post describes a prototype .NET command line tool that exports a website to static HTML and JSON files in subdirectories corresponding to the URLs of the entries in the Contentstack SaaS headless CMS. You can use a solution based on this approach to spider any Contentstack content delivery website to HTML and JSONContinue reading “-Code Dump: Contentstack .NET Static Site Exporter”
-Code Dump: .NET Contentstack Media Importer
This blog post describes a prototype .NET command line solution for importing media into the Contentstack SaaS headless content management system. While this tool functions, it could use testing and refactoring. More importantly, it demonstrates relevant APIs and techniques for working with folder paths in Contentstack. You can use these techniques to create asset folderContinue reading “-Code Dump: .NET Contentstack Media Importer”
-Paging Through HTTP API Results with .NET
This blog post demonstrates a simple C# coding pattern for paging through JSON results from HTTP APIs. For network considerations and to prevent unbounded queries, HTTP APIs often return records in batches of a maximum size. To process additional data, you can request additional pages. You could use this coding pattern on any platform toContinue reading “-Paging Through HTTP API Results with .NET”
-Access Error Data from HTTP Response When HttpWebRequest Throws an Exception
This blog post explains how to access the response body that may contain error messages when an HTTP request returns an error. You can use this technique to diagnose HTTP service API calls that return errors and raise exceptions. Update 14.Dec.2025: After years of frustration with WordPress, I am finally abandoning this blog. The contentContinue reading “-Access Error Data from HTTP Response When HttpWebRequest Throws an Exception”
-Prototype .NET Class Uploads Media Assets to Contentstack
This short blog post describes a prototype C# class that uploads files to the Contentstack SaaS headless CMS. I use this code to import media from a list specified in a spreadsheet. This code needs extensive refactoring and testing, but it works, I need to move on to something else, and I am publishing thisContinue reading “-Prototype .NET Class Uploads Media Assets to Contentstack”