This post was most recently updated on December 8th, 2020.
Reading Time: 2 minutes.This article describes a solution to an error “Insufficient memory to continue the execution of the program.” I was debugging an Azure Function locally and ran into it – it stopped my Azure Function from starting at all.
So, this is what I got:
Insufficient memory to continue the execution of the program.
Ohh… kay..? My development machines have plenty of RAM, surely enough to run an Azure Function!
So what gives?
How to resolve the error?
Okay, okay. So it’s actually super simple and the error is just misleading.
Not the first time that’s the case, right? :)
Anyway, chances are that you have empty values in your local.settings.json file. Something like shown below:

Just make sure you only have entries with at least the key set up!
And hey – if you have an application setting with an empty key (but the value set), you’ll get an error like this:

Just for the record, here’s the error once more:
String cannot be of zero length. (Parameter 'variable')
Just fill the key for your application setting entries!
With that, you should be good! :)
- How to fix “System.IO.FileSystem: Could not find a part of the path \AppData\Local\AzureFunctionsTools\Releases\3.17.0\workers. Value cannot be null. (Parameter ‘provider’)” when running Azure Functions locally? - January 12, 2021
- How to nuke the Identity Cache in Visual Studio? - January 11, 2021
- Fixing unexpected Microsoft.AspNetCore package errors after a dependency update - January 6, 2021