Azurite 未在 Visual Studio 2022 中自动启动

标签 azure visual-studio azure-functions visual-studio-2022

我无法使用 Blob 存储,因为在 Visual Studio 2022 Azureite 中似乎无法自动启动。因此我无法访问数据库等。

我遇到的错误:

Azure.Core:无法建立连接,因为目标计算机主动拒绝连接。 System.Net.Http:无法建立连接,因为目标机器主动拒绝。 System.Private.CoreLib:无法建立连接,因为目标机器主动拒绝。

启动 VS 时,我应该在输出窗口中看到一些信息,表明 Azure 工具正在更新。我什么也看不到。

有人遇到过这个问题吗?

最佳答案

有时这会在本地发生,例如 Azurite Emulator 突然停止。这个时候,出现此类问题的居多。

要解决此问题,您必须 start the Azure Storage Emulator manually .

它可以位于C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator路径中。

在命令提示符中打开上述路径并运行 Azurite 模拟器一次,如上面的链接所示,这应该可以清除拒绝连接问题。

引用这个SO Threadarticle了解同一问题的更多解决方法。

关于Azurite 未在 Visual Studio 2022 中自动启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72260938/

相关文章:

git - 检查 git 分支是否在 azure devops 上使用 api 被锁定

GitHub - 使用远程服务器设置自动部署

asp.net - 组织 Web 应用程序

Azure 函数无法从 PowerShell 命令行部署

c# - Azure函数不向服务总线主题发送消息

python - Azure Functions Python blobTrigger 如何修复 "Microsoft.Azure.WebJobs.Extensions.Storage: Object reference not set to an instance of an object."?

azure - 集成 Azure 数据工厂和 Airflow

azure - Windows Azure : FTP issue When Connecting to Website

visual-studio - VS2017 中缺少 .Net Core 2.1 模板

visual-studio - 如何使用 AnkhSVN 将 VS2010 项目添加到 Google Code SVN?