本文介绍了documentdb仿真器网关服务在启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找有关documentdb的信息,并且似乎没有错误地安装了模拟器.但是,启动后,我的服务崩溃了:

I was looking to learn about documentdb and installed the emulator seemingly without error. However, upon startup I have a service crashing:

GatewayServiceStartup

GatewayServiceStartup

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

Judging from the title I am guessing it is an important service to the emulator. Interestingly enough it seems like the emulator continues to load and attempts to open :https://localhost:8081/_explorer/index.html

没有成功.

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

using the command prompt I attempted to start the gateway services manually and here is the results:

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

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.SetupFusionStore(AppDomainSetup info,AppDomainSetup oldInfo) 在System.AppDomain.SetupDomain处(布尔值allowRedirects,字符串路径,字符串configFile,字符串[] propertyNames,字符串[] propertyValues)

Unhandled Exception: System.Runtime.InteropServices.COMException: Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)) at System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() at System.AppDomain.SetupFusionStore(AppDomainSetup info, AppDomainSetup oldInfo) at 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/?

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.SetupFusionStore(AppDomainSetup info,AppDomainSetup oldInfo) 在System.AppDomain.SetupDomain处(布尔值allowRedirects,字符串路径,字符串configFile,字符串[] propertyNames,字符串[] propertyValues)

Unhandled Exception: System.Runtime.InteropServices.COMException: Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)) at System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() at System.AppDomain.SetupFusionStore(AppDomainSetup info, AppDomainSetup oldInfo) at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)

C:\ Program Files \ DocumentDB仿真器\ Packages \ GatewayService \ GatewayService.Code>

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

网关服务相关吗?任何想法如何解决?

Is the gateway service relevant? Any idea how to fix?

快速我已按照此处列出的说明进行操作: https://docs.microsoft.com/zh-cn/azure/documentdb/documentdb-nosql-local-emulator#故障排除

QuickI have followed the directions listed here:https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting

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

No etl file is generated to be emailed.

预先感谢

推荐答案

使用[email protected],我们能够解决此问题.

Working with [email protected], we were able to resolve the issue.

查看故障转储文件,结果是性能计数器引起了问题.我禁用了性能计数器,然后一切都按预期进行.

Reviewing the crash dump files turns out that a perf counter was causing an issue. I disabled the perf counter and then everything worked as intended.

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

The perf counter in question was 2005 sqlexpress.

特别感谢Momin抽出宝贵的时间与我合作解决问题.

Special thanks to Momin for taking the time to work with me through the issue.

这篇关于documentdb仿真器网关服务在启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 01:41