日期:2014-05-19  浏览次数:21329 次

mschart注册问题
用C#.net做了个东西,里面的图形分析用到了mschart控件。在本机没有问题,但是在客户机器上使用时出错,只要一打开有mschart的页面就报错。出错信息如下:
An   unhandled   exception   has   occurred   in   your   application.If   you   click   Continue,the   application   will   ignore   this   error   and   attempt   to   continue.If   you   click   Quit,the   application   will   be   shut   down   immediately.
File   or   assembly   name   MSDATASRC,or   one   of   its   dependencies,was   not   found.
我用regsvr32   MSCHRT20.OCX又注册了一下,还是没用。
我在前2个客户机上没有问题,都是XP系统。怪呢。
不知道有没有人遇到过这种问题。

------解决方案--------------------
REGEDIT
HKEY_CLASSES_ROOT\Licenses = Licensing: Copying the keys may be a violation of established copyrights.

// MSCHART license key
HKEY_CLASSES_ROOT\Licenses\7C35CA30-D112-11cf-8E72-00A0C90F26F8 = whmhmhohmhiorhkouimhihihwiwinhlosmsl


详细情况察看
http://support.microsoft.com/?scid=kb%3Ben-us%3B177799&x=14&y=11

另外,请把msdatasrc.dll放到你的程序目录下
------解决方案--------------------
将msdatasrc.dll文件和MSCHRT20.OCX放在一个目录下面,
然后写个BAT注册:regsvr32 MSCHRT20.OCX。