【发布时间】:2019-06-08 03:03:07
【问题描述】:
我已经在本地机器上初始化了一个 Azure 存储模拟器,但我无法从 Visual Studio 或 Azure 存储资源管理器连接到它。我错过了什么?
尝试连接到本地 Azure 存储帐户模拟器时出错:
Unable to retrieve child resources.
A network error occurred (NetworkTimeoutError: connect ECONNREFUSED 127.0.0.1:10002)
如果我尝试探索存储,Visual Studio Server Explorer 中的错误=>开发:
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 中提供的名称相同的名称 湾。在 Internet Explorer 中将 http://127.0.0.1 添加到本地互联网区域, C。删除 %AppData%\Roaming\StorageExplorer 中的文件 但以上选项都没有帮助。
【问题讨论】:
-
您在存储资源管理器中看到本地存储帐户了吗?
-
@Jayendran,我已经添加了问题的更新。我可以看到本地存储帐户,但无法连接。
标签: azure azure-storage azure-table-storage azure-storage-emulator