babalae/better-genshin-impact · error · COMException

{stepName}失败:{comException.Message}

Error message

{stepName}失败:{comException.Message}

What it means

Error "{stepName}失败:{comException.Message}" thrown in babalae/better-genshin-impact.

Source

Thrown at BetterGenshinImpact/View/Controls/ChildSession/RdpActiveXHost.cs:633

            BindingFlags.InvokeMethod,
            binder: null,
            target,
            args,
            CultureInfo.InvariantCulture);
    }

    private static void RunComStep(string stepName, Action action)
    {
        try
        {
            action();
        }
        catch (Exception exception)
        {
            var actualException = exception.GetBaseException();
            if (actualException is COMException comException)
            {
                throw new COMException(
                    $"{stepName}失败:{comException.Message}",
                    comException.ErrorCode);
            }

            throw;
        }
    }

    [ComImport]
    [Guid("336D5562-EFA8-482E-8CB3-C5C0FC7A7DB6")]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    [TypeLibType(TypeLibTypeFlags.FDispatchable)]
    private interface IMsTscAxEvents
    {
        [DispId(1)]
        void OnConnecting();

        [DispId(2)]

View on GitHub (pinned to a7cb36712d)

Solutions

  1. 根据异常信息检查对应步骤的 RDP 配置与系统环境
  2. 确认远程桌面服务在系统中可用
  3. 查看详细日志定位具体失败步骤后重试

Example fix

根据消息中的步骤名和错误码定位;更新系统 RDP 组件,重启桌面分身,必要时反馈完整错误码。

When it happens

Trigger: RunComStep 包装的所有 RDP COM 配置/调用步骤中,底层抛出 COMException 时,以“{步骤名}失败”形式重新抛出,附带原始错误码。

Common situations: 具体某一步(如设置端口、启用CredSSP、发送按键)被系统 COM 拒绝,多为组件版本不支持或会话状态异常。


AI-assisted analysis of babalae/better-genshin-impact@a7cb36712d (2026-08-13). Data as JSON: /api/errors/627ed21dcedfa920. Report an issue: GitHub.