C# Call custom COM+ error: 80070005 Access is denied

C# Call custom COM+ error: 80070005 Access is denied

System.UnauthorizedAccessException: 'Retrieving the COM class factory for component with CLSID failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).'

该代码正在调用调用自定义 dcom 应用程序的 Web 方法。 Web 服务已在 IIS 的 32 位上设置为 运行。

DCom CLSID 确实存在,我已检查权限。

卸载并重新安装自定义 Dcom 应用程序解决了我的问题。