WINCC异常来自 HRESULT:0x80040155

System.Runtime.InteropServices.COMException没有注册接口 (异常来自 HRESULT:0x80040155)Exception Source System.Windows.FormsException Target SiteSystem.Windows.Forms.AccessibleObject HitTest(Int32, Int32)Exception Stack Trace   在 System.Windows.Forms.AccessibleObject.HitTest(Int32 x, Int32 y)   在 Siemens.Simatic.Hmi.Utah.Framework.HmiHelpProvider.ApplicationIdleEvent(Object sender, EventArgs e)   在 System.EventHandler.Invoke(Object sender, EventArgs e)   在 System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)   在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)   在 System.Windows.Forms.Application.Run(Form mainForm)   在 Siemens.Simatic.Hmi.Utah.Framework.AppLoader.Run(String[] args)   在 Siemens.Simatic.Hmi.Utah.Framework.AppStarter.Main(String[] args)End Exception

最佳答案

复制下面的内容到记事本中, 保存为 文件名为 a.reg 的注册表文件, 点右键"合并".

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{00020404-0000-0000-C000-000-000000046}] 
@="IEnumVARIANT" 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{00020404-0000-0000-C000-000-000000046}\NumMethods] 
@="7" 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{00020404-0000-0000-C000-000-000000046}\ProxyStubClsid] 
@="{00020421-0000-0000-C000-000000000046}" 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{00020404-0000-0000-C000-000-000000046}\ProxyStubClsid32] 
@="{00020421-0000-0000-C000-000000000046}"

后来终于看到官方解决办法(http://support.installshield.com/kb/view.asp?pcode=ALL&articleid=Q106194):

将下面的内容合并到注册表中:

REGEDIT4

[HKEY_CLASSES_ROOT\Interface\{00020404-0000-0000-C000-000000000046}] 
@="IEnumVARIANT"

[HKEY_CLASSES_ROOT\Interface\{00020404-0000-0000-C000-000000000046}\NumMethods] 
@="7"

[HKEY_CLASSES_ROOT\Interface\{00020404-0000-0000-C000-000000000046}\ProxyStubClsid] 
@="{00020421-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{00020404-0000-0000-C000-000000000046}\ProxyStubClsid32] 
@="{00020421-0000-0000-C000-000000000046}"

提问者对于答案的评价:
感谢您的回答。问题已经解决。我是后来运行了WINccflexible 2008 Runtime 里面的HmiLoad 程序后就可以了。不知道是不是这个原因解决了。

原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc362337.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2021年7月5日
下一篇 2021年7月5日

相关推荐

发表回复

登录后才能评论