Error Running Azure Function (Isolated Worker) Locally

Bernard Brown 65 Reputation points
2024-07-17T14:01:56.1566667+00:00

Hi,

I've converted my Azure Function from in-process to isolated-worker. I used the .NET Upgrade Assistant and I've followed these instructions. I've tried to run it from Visual Studio, Rider and the command line (func host start --donet-isolated-debug). Each time I run it, I get the following error:
System.InvalidOperationException: 'The gRPC channel URI 'http://:' could not be parsed.'.

I've tried searching, but none of the solutions have helped. Can someone please provide assistance?

Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,907 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Greg Moyer 1 Reputation point
    2024-07-17T16:29:11.0533333+00:00

    Try deleting both obj and bin folders for your function project. I had same error and when I copied my code to a new Function project it worked. That is how I discovered this.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.