开发者

COM server instance creation fails with error -2147024156

开发者 https://www.devze.com 2023-03-25 21:51 出处:网络
When I try开发者_C百科 to create a DCOM server with CoCreateInstance, it fails with error code\'-2147024156\'. The error message corresponding to the error code is \'the process requires elevation\'.

When I try开发者_C百科 to create a DCOM server with CoCreateInstance, it fails with error code '-2147024156'. The error message corresponding to the error code is 'the process requires elevation'. What should I do to correct this issue?


A UAC dialog appears for Both Client and Server applications

Right, and that's the problem. There is no mechanism to display a UAC dialog on a remote machine. That would utterly defeat the point of UAC. You'll have to make it work without the dialog. Replace "requireAdministor" in the manifest with "asInvoker" and adjust the code to not require the privilege. Good luck with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消