"FUNCTIONS_INPROC_NET8_ENABLED": 1
I have added this to local settings after upgraded to .NET 8 to resolve the error