combase.dll error while 运行 Windows 8.1 App in tablet device

combase.dll error while running Windows 8.1 App in tablet device

我开发了一个 Windows 8.1 应用程序,我的客户打算在平板设备上使用它。当平板电脑连接到 Wifi 时,我的应用程序运行得非常好,但当平板电脑使用 SIM 卡连接到 3G/4G 网络时,每次启动时它都会崩溃。当我检查 EventViewer 时,它显示为 Application Error 并且在描述中显示为 combase.dll error。即使我在 Visual Studio 2015 年使用 Remote Machine 调试应用程序,它也没有给出任何错误。我的应用程序是具有 AnyCPU 配置的发布版本。

有人可以提出问题吗?

要调试应用商店应用程序崩溃,生成完整转储(procdump 配置为 post 即时调试器:procdump -ma -i C:\localdumps

现在在 Windbg(Windows 10 SDK 的一部分)中打开 dmp, and use the Windbg Extension PDE.dll from Andrew Richards 以列出所有 Stowed 异常(那些 0xC000027B 异常)!PDE.dpx -dse 到 :

0:006> !PDE.dpx -dse
Start memory scan  : 0x0551fc7c ($csp)
End memory scan    : 0x05520000 (User Stack Base)

0x0551fc94 : 0x012db914 :  !dse combase!STOWED_EXCEPTION_INFORMATION_V1
0x0551fcdc : 0x0163c168 :  !dse combase!STOWED_EXCEPTION_INFORMATION_V1

现在使用 !PDE.dse 显示其数据:

0:006> !PDE.dse 0551fc94
Stowed Exception Array @ 0x0551fc94

Stowed Exception #1 @ 0x012db914
    0x80070005 (FACILITY_WIN32 - Win32 Undecorated Error Codes): E_ACCESSDENIED - General access denied error

    Stack    : 0x163c528
        770ba9f1 combase!RoOriginateLanguageException+0x3b
        6f137872 clr!SetupErrorInfo+0x1e1
        6f1fbc91 clr!MarshalNative::GetHRForException_WinRT+0x7d

>>> Associated CLR Exception <<<

Exception object: 02b424f8
Exception type:   System.UnauthorizedAccessException
Message:          <Invalid Object>
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    00000000 00000001 UNKNOWN!UNKNOWN+0x2
    0551FC58 015702E9 CryptoQuoteW8cs!UNKNOWN+0x81

这显示了与关联的 CLR 异常相关的异常内容。