简体   繁体   English

检索具有CLSID {10020200-E260-11CF-AE68-00AA004A34D5}的组件的COM类工厂

[英]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.

相关问题 为什么SQL Server会四舍五入到9.999999999999999e + 004? - Why does SQL Server rounds to 9.999999999999999e+004? Microsoft SQL Server:对COM组件的调用已返回错误HRESULT E_FAIL - Microsoft SQL Server: Error HRESULT E_FAIL has been returned from a call to a COM component 错误HRESULT E_FAIL已从对COM组件_2的调用返回 - Error HRESULT E_FAIL has been returned from a call to a COM component_2 SSRS 给出错误,因为 HResult E_FAIL 已从对 COM 组件的调用返回 - SSRS giving error as HResult E_FAIL has been returned from a call to a COM Component SQL Server错误-调用COM组件已返回HRESULT E_FAIL - SQL Server Error - HRESULT E_FAIL has been returned from a call to a COM component 如何在SQL查询中将“ 23:00:00”时间更改为“ 11:00 PM”? - How Change the '23:00:00' time to something like '11:00PM' in sql query? SQL Server:使用dateadd(m,-6,date)我需要从&#39;2014-11-30 00:00:00&#39;减去6个月,但是得到的&#39;2014-05-30 00:00:00&#39;是不正确 - SQL Server: Using dateadd(m,-6, date) I need to subtract 6 months from '2014-11-30 00:00:00', but, getting '2014-05-30 00:00:00' which is incorrect SQL异常com.microsoft.sqlserver.jdbc.sqlserverexception:用户“”登录失败。 客户端连接ID:073b35b2-0e56-460d-8353-9de2b2d0ecff - Sql exception com.microsoft.sqlserver.jdbc.sqlserverexception: login failed for user ''. Clientconnectionid:073b35b2-0e56-460d-8353-9de2b2d0ecff SQL 聚合时间序列表 (HourOfDay, Val) 到按工作日计算的 HourOfDay 的平均值(fi. Avg of Mondays 10:00-11:00, 11:00-12:00,...,Tue...) - SQL-Aggregate Timeseries Table (HourOfDay, Val) to Average Value of HourOfDay by Weeekday (fi. Avg of Mondays 10:00-11:00, 11:00-12:00,...,Tue...) 存储值为&lt;00:00:00的.Net Timespan的正确SQL类型是什么? 即负时间跨度到sql server存储过程 - What is the correct SQL type to store a .Net Timespan with values < 00:00:00? i.e. negative timespan to sql server stored procedure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM