我已经在我的本地机器上初始化了一个 azure 存储模拟器,但我无法从 Visual Studio 或 Azure 存储资源管理器连接到它。我错过了什么?
当我尝试连接到本地 azure 存储帐户模拟器时出错:
Unable to retrieve child resources.
A network error occurred (NetworkTimeoutError: connect ECONNREFUSED 127.0.0.1:10002)
如果我尝试探索存储 => 开发,则 Visual Studio 服务器资源管理器中的错误:
Cannot create database 'AzureStorageEmulatorDb59' : The database 'AzureStorageEmulatorDb59' does not exist. Supply a valid database name. To see available databases, use sys.databases..
Learn more about known storage blob issues and solutions at https://go.microsoft.com/fwlink/?LinkId=532762.
在我的机器上初始化 Azure 存储模拟器的命令。
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe init -server . -sqlinstance SQLEXPRESS -forcecreate
Windows Azure Storage Emulator 5.9.0.0 command line tool
Attempting to use server specified.
User specified an instance through /server or /sqlInstance options.
Probing SQL Instance: '.\SQLEXPRESS'.
Found SQL Instance .\SQLEXPRESS.
Creating database AzureStorageEmulatorDb59 on SQL instance '.\SQLEXPRESS'.
Granting database access to user DESKTOP-2LS7578\AjitGoel.
Database access for user DESKTOP-2LS7578\AjitGoel was granted.
Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully initialized and is ready to use.
更新: 我试过了。添加与 C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\storageemulatorexplorer.exe.config 中提供的名称相同的名称。将http://127.0.0.1添加到 Internet Explorer 中的本地 Internet 区域,c。删除 %AppData%\Roaming\StorageExplorer 中的文件,但上述选项均无帮助。