C# Windows Service COM exception 80080005 when starting application

▼魔方 西西 提交于 2019-11-29 08:37:40

I have now found a solution.

I found it in another forum, where someone had problem to run another application through web. Strangely enough, that solution worked for me too.

  1. Click run
  2. enter dcomcnfg
  3. Browse your way to Component services>Computers>My Computer>DComConfig>
  4. Then find your application, in my case "CATIA Application".
  5. right click>properties
  6. Go to "Identity" tab
  7. Change the user who should run this application from "The launching user" to "The interactive user".

Now it works for me. I am still not able to catch the process (GetActiveObject) if I start it manually first. But at least the Service manage to start a new instance without any errors.

I think this can be helpful for a lot of people who come across this error message when trying to start an application from a Windows Service.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!