[英]The listener for function '' was unable to start. Azure durable function VS 2022
[英]durable function unable to start
我在使用C#中的Azure持久功能時遇到了麻煩。 將此作為示例並嘗試從https://docs.microsoft.com/zh-cn/azure/azure-functions/durable-functions-sequence在Visual Studio 2017中啟動
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
namespace VSSample
{
public static class HelloSequence
{
[FunctionName("E1_HelloSequence")]
public static async Task<List<string>> Run(
[OrchestrationTrigger] DurableOrchestrationContext context)
{
var outputs = new List<string>();
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", "Tokyo"));
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", "Seattle"));
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", "London"));
// returns ["Hello Tokyo!", "Hello Seattle!", "Hello London!"]
return outputs;
}
[FunctionName("E1_SayHello")]
public static string SayHello([ActivityTrigger] string name)
{
return $"Hello {name}!";
}
}
}
但是我會收到此錯誤:“函數'E1_SayHello'的偵聽器無法啟動。Microsoft.WindowsAzure.Storage:無法連接到遠程服務器。系統:無法連接到遠程服務器。系統:無法連接因為目標計算機主動拒絕了127.0.0.1:10000。
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true"
}
}
我是否需要做其他事情還是應該立即使用? 我需要在端口10000中擁有什么?
我的蜘蛛般的感覺在這里刺痛
你讀過了嗎
先決條件
請遵循“ 安裝耐用功能”中的說明來設置示例。
先決條件
該錯誤最有可能試圖連接到仿真器,並且未安裝或設置。
那你遵循這些步驟了嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.