blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
Scheduled Task that runs a PowerShell script returning 0x80070001
I've recently migrated several scheduled tasks from one machine to another as part of a rationalisation process. A couple of these tasks were ones that can only be run at a certain time, so were …
-
Using Windows 10 UWP APIs from a .NET Core application
One of the things that Microsoft talked about at Build 2019 was how they intended to broaden availability of UWP APIs so that they can be consumed by non-UWP (in the "store only / sideload only" …
-
Reading and writing a memory-mapped file in .NET Core
According to Wikipedia, a Memory-mapped file is:
A memory-mapped file is a segment of virtual memory that has been assigned a direct byte-for-byte correlation with some portion of a file or file- …
-
Updating IIS application pools using appcmd
When it comes to configuring IIS it turns out there are quite a few different ways that you can do this:
Using the Internet Information Services (IIS) Manager
Hand editing web.config and …
-
Visual Studio Team Foundation Server 2015: "TF401189: The source branch has been modified since the last merge attempt."
(Yes, I know, ancient version of TFS!)
If you're attempting to delete a stale pull request in TFS 2015 where the original branch has been deleted (or in this instance merged back to master and then …
-
Where does Certify put the certificate if you choose 'No Deployment' as the Deployment mode?
I've today (finally!) had cause to migrate a site to a Let's Encrypt SSL certificate, mainly because the incumbent provider is being somewhat useless when it comes to issuing the certificate.
We' …
-
Scaffolding an Entity Framework Core database in a project that targets .NETStandard
I've been working on a project recently for storing system configuration data (I know, I know, this is a problem that's been solved a thousand times over!) and after defining the database structure …
-
Adding a delay to ASP.NET Core Web API methods to simulate slow or erratic networks
I recently commented on a tweet by @jongalloway, saying:
A thousand times this! Run your app with an artificial delay introduced into server responses and look for things that don't make sense. …
-
Running Pi-hole on a CentOS virtual machine
Pi-hole is an awesome piece of software intended to be run on a Raspberry Pi (the clue's in the name!) that will sit quietly on your network responding to DNS requests, dropping ones for spammy …
-
'The specified URL cannot be found' - it can, but your Barracuda WAF doesn't want it to be
If you're seeing the following symptoms:
Your're seeing customers saying they're getting 'stuck' at a certain point in your application
There's nothing in your IIS (or web server of choice) to …