Azure函数dotnet分离的V4
我最近开始了我的C#旅程,所以与我无聊...
所以我的问题是,在安装了Azure-Functions-Core-Toolsv4(Mac使用Brew)之后,我终于能够看到为什么Rider(使用与插件相同)刚刚出现错误(过程完成了出口代码137。)。
我试图修复我们切换到dotnet is -olated的另一个问题 - 即:
未经处理的异常。 system.invalidoperationException:GRPC频道URI http://:0'无法解析。
在大量谷歌搜索后,我发现如果我尝试使用“正常”运行在本地运行我的函数,这显然会发生这种情况。 (dotnet run ...) - 如果我刚在程序上跑步。相反,我应该选择“ Func主机启动...”通过Azure功能核心工具提供。
所以我的错误是: microsoft.azure.webjobs.script:运行时的WorkerConfig:找不到dotnet is-olated。值不能为null。 (参数'Provider')
所以我的问题是,无论我做什么在我的开发人员笔记本电脑(Mac和Windows笔记本电脑上)上的功能(在Azure Portal上运行良好)。
查看第二个错误,这确实让我感到困惑,为什么我会看到“ WebJobs”名称空间 - 据我了解,新的dotnet syolated的一部分是完全远离webjobs的东西...
I have recently started my C# journey so bare with me...
so my issue is that after installing azure-functions-core-toolsv4 (mac using brew) I was finally able to see why Rider (which use the same as a plugin) just exited with error (Process finished with exit code 137.).
I was trying to fix another issue we get after switching to dotnet-isolated - namely:
Unhandled exception. System.InvalidOperationException: The gRPC channel URI 'http://:0' could not be parsed.
After a ton of googling I found that this apparently occurs if I try to run my function locally using the "normal" run (dotnet run...) - that is invoked if I just hit run on my Program.cs Main. Instead I should go for "func host start ..." provided via the Azure Functions Core Tools.
So my error is:Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: dotnet-isolated not found. Value cannot be null. (Parameter 'provider')
So my problem is that no matter what I do I get the same two kinds of errors after switching to dotnet-isolated
, when I try to run my startup my functions on my developer laptop (both on my mac and on my windows laptop) (it runs fine on Azure portal).
Looking at the second error it really puzzles me why I see the "WebJobs" namespace - as far as I have understood part of the new dotnet-isolated is to switch completely away from the WebJobs stuff...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除我的主机中的扩展线部分。JSON解决了问题。
删除此后,我的
func start -csharp
从Commandline,Rider和Visual Studio中正常工作。Removing the extensionBundle section in my host.json fixed the problem.
After removing this my
func start --csharp
works fine from commandline, Rider and Visual Studio.