【问题标题】:How to solve DSInit not found error in Microsoft Azure?如何解决 Microsoft Azure 中未找到 DSInit 错误?
【发布时间】:2014-04-07 09:16:56
【问题描述】:

我读过一些文章“http://www.c-sharpcorner.com/UploadFile/40e97e/windows-azu-creating-and-deploying-worker-role/

如果我尝试运行我的代码'错误发生:

错误:Windows Azure 工具:无法初始化开发存储服务。无法启动开发存储

我做了一些调查来解决这个无聊的问题:

http://www.nimbo.com/blog/error-failed-to-initialize-windows-azure-storage-emulator/ http://kristofmattei.be/2010/01/28/windows-azure-sdk-connecting-to-non-sqlexpress-instance/

如果我运行“dsinit /sqlinstance:”。如果我使用:“WAStorageEmulator init –forcecreate”结果如下: 错误:“找不到 DsInit”

【问题讨论】:

    标签: azure azure-storage azure-table-storage


    【解决方案1】:

    如果您使用的是 Azure SDK 2.3,请注意 DSInit.exe 已从 SDK 中删除。它已被替换为 WAStorageEmulator.exe,可以在 C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator 文件夹中找到。

    要初始化存储模拟器,您将使用的命令是:

    WAStorageEmulator init -forcecreate
    

    这类似于DSInit /forceCreate

    还有其他一些可用的选项:

    WAStorageEmulator clear table
    

    仅从存储模拟器中删除表。

    WAStorageEmulator clear blob
    

    仅从存储模拟器中删除 blob 容器

    WAStorageEmulator clear queue
    

    仅从存储模拟器中删除队列。

    WAStorageEmulator clear all
    

    删除所有表、队列和 Blob 容器而不删除数据库。

    我也写了一篇关于它的博客文章,其中我谈到了更多细节。你可以在这里阅读博文:http://gauravmantri.com/2014/04/04/managing-storage-emulator-in-azure-sdk-version-2-3

    【讨论】:

    • WAStorageEmulator init –forcecreate 不工作。 WAStorageEmulator init -server .\YUSUFK -sqlinstance .\SQLEXPRESS -forcecreate 也不起作用
    • 我在我的问题中添加了图片
    • 这真的很奇怪!!!当我从上面的答案中复制命令并将其粘贴到命令窗口中时,我得到了您遇到的确切错误。但是,当我手动键入相同的命令时,它可以工作。可以手动输入命令试试吗?
    • 我不知道这真的很无聊!
    • WAStorageEmulator init 'H2014-008' 'MSSQL11.MSSQLSERVER' –forcecreate 不工作
    【解决方案2】:

    当模拟器在安装了 SQL SERVER 的情况下无法初始化时,我遇到了这个问题(默认情况下它会查找 SQLEXPRESS)。对于 Microsoft Azure Storage Emulator v5.8,接受的答案不再有效。我在Microsoft site 上找到了解决方案。总结:

    在启动模拟器时打开的控制台窗口中,您可以使用以下命令:

    如果要初始化特定的 SQL Server 实例

    AzureStorageEmulator.exe init /server <SQLServerInstance>
    

    您还可以使用以下命令,该命令指示模拟器使用默认 SQL Server 实例

    AzureStorageEmulator.exe init /server .
    

    或者,您可以使用以下命令,将数据库重新初始化为默认的 LocalDB 实例

    AzureStorageEmulator.exe init /forceCreate
    

    【讨论】:

      猜你喜欢
      • 2015-02-08
      • 1970-01-01
      • 1970-01-01
      • 2021-10-31
      • 2020-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-29
      相关资源
      最近更新 更多