Error registering COM+ Application

本文解决了VB.NET开发的COM+组件在不同环境下部署时出现的注册错误问题,包括组件已存在、缺失依赖及DTC配置错误等常见情况。
公司用vb.net 2003写的一个COM+,导出Application Proxy, 在开发环境下安装都没有问题,但是在其它机子安装,就遇到这样那样的问题.而且windows报的错,都一个样.用google 搜了半天,也没找到具体的解决方案.

1. 该组件已经安装. 也会报Error registering COM+ Application.
这个只要在"组件服务"-计算机-我的电脑-COM+应用程序,把同名的组件删除就可以了.

2. 缺少其它组件. 报Error registering COM+ Application大半是缺少相关的组件. 如果不知道缺少什么组件,就比较麻烦. 比如:在开发环境下有安装.net framework, 而目标服务器没有安装,就会报这个错.如果是用VS2003,得在服务器上安.net framework 1.1, 而VS2005用的是.net framework2.0, 即使你安装了.net framework2.0, 还需要另外安装1.1的,因为不向下兼容.

3.DTC问题,报错的时候有一个Error Code:1928
( Error 1928. Error registering COM+ Application. Contact your support personnel for more information.)
解决方法如下:
1. From the Start menu, click Control Panel, double-click Administrative
Tools, and then double-click Component Services.
2. Expand Component Services, and then expand Computers.
3. Right-click My Computer and then select Properties.
4. In the Properties window, select the MSDTC tab.
5. In the TransactionConfiguration area, click Security Configuration.
6. In the Security Settings area, select the Network DTCAccess check box.
7. In the Transaction ManagerCommunication area, select the Allow Inbound
and the AllowOutbound check boxes.
8. Click OK to close each open dialog box.
9. Restart your computer to enable the remote DTC option.
Warning: Error registering driver names: [com.mysql.cj.jdbc.Driver, dm.jdbc.driver.DmDriver] Caused By: java.lang.ClassNotFoundException: dm.jdbc.driver.DmDriver 2025-11-12 21:01:23.879 WARN 21420 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybatisPlusInterceptor' defined in class path resource [com/sinochem/it/sdm/common/mybatis/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.com.sinochem.it.sdm.common.mybatis.config.MybatisPlusConfig': Invocation of init method failed; nested exception is com.p6spy.engine.spy.P6DriverNotFoundError: Error registering driver names: [com.mysql.cj.jdbc.Driver, dm.jdbc.driver.DmDriver] Caused By: java.lang.ClassNotFoundException: dm.jdbc.driver.DmDriver 2025-11-12 21:01:23.887 WARN 21420 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception thrown from ApplicationListener handling ContextClosedEvent
最新发布
11-13
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值