documentdb 模拟器网关服务在启动时崩溃

Chr*_*ris 5 azure-cosmosdb

我正在寻找了解 documentdb 并安装模拟器似乎没有错误。但是,在启动时我有一个服务崩溃:

网关服务启动

从标题来看,我猜这是对模拟器的一项重要服务。有趣的是,模拟器似乎继​​续加载并尝试打开: https://localhost:8081/_explorer/index.html

没有成功。

使用命令提示符我尝试手动启动网关服务,结果如下:

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>documentdb.gatewayservice.exe /?

未处理的异常:System.Runtime.InteropServices.COMException:注册表的值无效(来自 HRESULT 的异常:0x80040153 (REGDB_E_INVALIDVALUE))在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionupStore info(AppDomain)InfoSet在 System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>documentdb.startupentrypoint.exe /?

未处理的异常:System.Runtime.InteropServices.COMException:注册表的值无效(来自 HRESULT 的异常:0x80040153 (REGDB_E_INVALIDVALUE))在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionupStore info(AppDomain)InfoSet在 System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>

网关服务是否相关?知道如何解决吗?

快速编辑:我已按照此处列出的说明进行操作:https : //docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting

没有生成要通过电子邮件发送的 etl 文件。

提前致谢

Jan*_*nen 6

我只是通过LODCTR /R修复性能计数器来解决这个问题。

C:\WINDOWS\system32>LODCTR /R

Error: Unable to rebuild performance counter setting from system backup store, error code is 2
C:\WINDOWS\system32>LODCTR /R

Info: Successfully rebuilt performance counter setting from system backup store
C:\WINDOWS\system32>
Run Code Online (Sandbox Code Playgroud)

我只需要运行两次就可以成功。


Chr*_*ris 0

通过与askdocdb@microsoft.com 合作,我们解决了该问题。

检查故障转储文件发现性能计数器导致了问题。我禁用了性能计数器,然后一切都按预期进行。

有问题的性能计数器是 2005 sqlexpress。

特别感谢 Momin 抽出时间与我一起解决这个问题。