四种DCOM错误的区别,0x80080005 0x800706be 0x80010105 0x
四种DCOM错误的区别
Differences between the following DCOM error
Differences between the following DCOM error
0x80080005
0x800706be
0x80010105
0x800706ba
0x80080005:CO_E_Server_Exec_Failure
Server execution failed
Server execution failed
It is usually quite clear: COM (really, RPCSS) tried to launch a particular server process and either it failed to start, or it died after being started without registering (via CoRegisterClassObject), or it failed to register within a timely manner after being started (usually ~2 minutes are allowed, but the time limit can vary by server type).
Repro:比如你有一个程序叫做SimpleDCOM.exe,作为DCOM服务器一切运行正常。如果你把notepad.exe改名为SimpleDCOM.exe,替代掉原先的文件,客户端在调用DCOM的时候就会出这个错。SOX050427700068
0x800706be:PRC_S_CALL_FAILED
The remote procedure call failed.
The Server crashes before finishing the call.
Repro:重现这个问题很简单。在DCOM的方法中显示一个MessageBox。在dismiss掉这个MessageBox,让DCOM call返回以前,从任务管理器杀死DCOM Server,然后客户端就会看到这个错了。
0x80010105:RPC_E_SERVERFAULT
The server threw an exception
The server threw an exception
Very straight forward, the server throws an exception.
Repro:DCOM方法中直接抛出一个C++ exception就可以重现这个问题。聪明的你可能会问,为啥米C++ exception不会导致DCOM Server crash呐,那是因为:
"Normally, an exception that happens in a DCOM server during execution of a method call is caught by an exception handler in OLE32.DLL, and the method call returns RPC_E_SERVERFAULT."
如果要改变这个行为,可以参考IgnoreServerExceptions这个注册表键:
http://support.microsoft.com/kb/198623/en-us
http://support.microsoft.com/kb/198623/en-us
0x800706ba:RPC_S_SERVER_UNAVAILABLE
The PRC server is unavaliable
The server stub is disconnected.
Repro:在客户段new一个DCOM object, 暂时不使用。然后重任务管理器中杀死DCOM Server, 然后调用这个DCOM object的方法,错误就出来了
分类:
技术类
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现