24小时热门版块排行榜    

查看: 1350  |  回复: 1

想要飞得高

木虫 (正式写手)

[求助] C# 上位机 运行错误 已有1人参与

C#编的上位机编译成功,但是运行就出现以下错误,请问如何修正?


出错行: ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();

出错内容:“System.Runtime.InteropServices.COMException”类型的未经处理的异常在 System.Windows.Forms.dll 中发生

其他信息: 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))


TeeChart插件我已注册,不然在程序里也调用不了。难道是缺少其他插件?请各位大神帮忙指点。
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

FMStation

至尊木虫 (知名作家)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
想要飞得高: 金币+30, ★★★★★最佳答案 2016-10-13 15:24:00
https://stackoverflow.com/questi ... rvices-comexception
Sometimes user doesn't have enough priveleges to run some COM Methods.
I ran Visual Studio as Administrator and the exception was gone.

https://stackoverflow.com/questi ... ive-brokers-tws-api
Make sure you add the component to the IDE using the visual designer.

http://forums.ni.com/t5/Measurem ... d-after/td-p/482059
System.Runtime.InteropServices.COMException' occurred after installation of National Instruments

http://me1237guy.pixnet.net/blog ... nent%3A-evision.ocx
Registering ActiveX component
2楼2016-10-08 06:34:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 想要飞得高 的主题更新
信息提示
请填处理意见