documentdb 模拟器 gatewayservice 在启动时崩溃
documentdb emulator gatewayservice crashing on startup
我正在寻找有关 documentdb 的知识,并且似乎没有错误地安装了模拟器。但是,在启动时我有一个服务崩溃:
网关服务启动
从标题来看我猜它是模拟器的一个重要服务。有趣的是,模拟器似乎继续加载并尝试打开:
https://localhost:8081/_explorer/index.html
没有成功。
我尝试使用命令提示符手动启动网关服务,结果如下:
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>documentdb.gatewayservice.exe /?
未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(HRESULT 异常:0x80040153 (REGDB_E_INVALIDVALUE))
在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath()
在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo)
在 System.AppDomain.SetupDomain(布尔 allowRedirects、字符串路径、字符串配置文件、字符串[] propertyNames、字符串[] propertyValues)
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>documentdb.startupentrypoint.exe /?
未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(HRESULT 异常:0x80040153 (REGDB_E_INVALIDVALUE))
在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath()
在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo)
在 System.AppDomain.SetupDomain(布尔 allowRedirects、字符串路径、字符串配置文件、字符串[] propertyNames、字符串[] propertyValues)
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>
网关服务是否相关?知道如何解决吗?
快速编辑:
我已按照此处列出的说明进行操作:
https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting
没有生成要通过电子邮件发送的 etl 文件。
提前致谢
Chris- 建议将转储 and/or 跟踪文件发送到 askdocdb@microsoft.com。此处提供了检索文件的具体说明:https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting。 -咪咪
与 askdocdb@microsoft.com 合作,我们解决了这个问题。
查看故障转储文件后发现性能计数器导致了问题。我禁用了性能计数器,然后一切正常。
有问题的性能计数器是 2005 sqlexpress。
特别感谢 Momin 抽出时间与我一起解决这个问题。
我在调试 GatewayServiceStartup
进程时遇到以下异常:
Cannot load Counter Name data because an invalid index '' was read
from the registry.
使用 Cannot load Counter Name data because an invalid index -Exception 修复了它:
在提升的命令提示符下:
C:\windows\SysWOW64> lodctr /r
我简单地用 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>
我只需要 运行 两次就成功了。
我遇到了同样的问题。我卸载了 Sql Server 2008 R2.Not 兼容 win win 10 无论如何。
我正在寻找有关 documentdb 的知识,并且似乎没有错误地安装了模拟器。但是,在启动时我有一个服务崩溃:
网关服务启动
从标题来看我猜它是模拟器的一个重要服务。有趣的是,模拟器似乎继续加载并尝试打开: https://localhost:8081/_explorer/index.html
没有成功。
我尝试使用命令提示符手动启动网关服务,结果如下:
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>documentdb.gatewayservice.exe /?
未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(HRESULT 异常:0x80040153 (REGDB_E_INVALIDVALUE)) 在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo) 在 System.AppDomain.SetupDomain(布尔 allowRedirects、字符串路径、字符串配置文件、字符串[] propertyNames、字符串[] propertyValues)
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>documentdb.startupentrypoint.exe /?
未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(HRESULT 异常:0x80040153 (REGDB_E_INVALIDVALUE)) 在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo) 在 System.AppDomain.SetupDomain(布尔 allowRedirects、字符串路径、字符串配置文件、字符串[] propertyNames、字符串[] propertyValues)
C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.代码>
网关服务是否相关?知道如何解决吗?
快速编辑: 我已按照此处列出的说明进行操作: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting
没有生成要通过电子邮件发送的 etl 文件。
提前致谢
Chris- 建议将转储 and/or 跟踪文件发送到 askdocdb@microsoft.com。此处提供了检索文件的具体说明:https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting。 -咪咪
与 askdocdb@microsoft.com 合作,我们解决了这个问题。
查看故障转储文件后发现性能计数器导致了问题。我禁用了性能计数器,然后一切正常。
有问题的性能计数器是 2005 sqlexpress。
特别感谢 Momin 抽出时间与我一起解决这个问题。
我在调试 GatewayServiceStartup
进程时遇到以下异常:
Cannot load Counter Name data because an invalid index '' was read from the registry.
使用 Cannot load Counter Name data because an invalid index -Exception 修复了它:
在提升的命令提示符下:
C:\windows\SysWOW64> lodctr /r
我简单地用 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>
我只需要 运行 两次就成功了。
我遇到了同样的问题。我卸载了 Sql Server 2008 R2.Not 兼容 win win 10 无论如何。