I had the same error. If you are converting a function to net8.0, make sure you have these three lines in your settings: "FUNCTIONS_WORKER_RUNTIME": "dotnet", "FUNCTIONS_EXTENSION_VERSION": "~4", "FUNCTIONS_INPROC_NET8_ENABLED": "1" That fixed it for me.