[英]Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5}
I was working with SQL DMO class for some query execution in VB.NET code, and I am getting following error 我正在使用SQL DMO类在VB.NET代码中执行某些查询,但出现以下错误
{"Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." {“由于以下错误,检索具有CLSID {10020200-E260-11CF-AE68-00AA004A34D5}的组件的COM类工厂失败:80040154未注册类(HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG))。”
I have searched though internet , tried to register the file but no luck. 我通过互联网搜索,试图注册该文件,但没有运气。
Below is the code sample: 下面是代码示例:
Dim dbObj = New SqlDataAccess()
Dim oSQLServer As New SQLDMO.SQLServer
oSQLServer.Connect(SqlDataAccess.ServerName, SqlDataAccess.UserName, SqlDataAccess.Password)
It breaks at third line, the application is running 4.6.1 .Net framework and I am using Windows 10(64bit), VS 2015 Version. 它在第三行中断,该应用程序正在运行4.6.1 .Net框架,而我使用的是Windows 10(64位),VS 2015版本。
通过简单查询而不是使用DMO和SMO库完成此任务的最佳方法: 在此处查找解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.