惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
S
Secure Thoughts
P
Palo Alto Networks Blog
Google DeepMind News
Google DeepMind News
AI
AI
H
Hacker News: Front Page
Schneier on Security
Schneier on Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cloudbric
Cloudbric
TaoSecurity Blog
TaoSecurity Blog
T
Tor Project blog
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
S
Security @ Cisco Blogs
S
Security Affairs
P
Privacy International News Feed
I
Intezer
S
SegmentFault 最新的问题
F
Full Disclosure
H
Heimdal Security Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Securelist
V
Vulnerabilities – Threatpost
C
CERT Recently Published Vulnerability Notes
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Security Latest
Security Latest
C
Cybersecurity and Infrastructure Security Agency CISA
Attack and Defense Labs
Attack and Defense Labs
Forbes - Security
Forbes - Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
WordPress大学
WordPress大学
Vercel News
Vercel News
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
美团技术团队
IT之家
IT之家
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
D
Docker
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Hugging Face - Blog
Hugging Face - Blog

博客园 - 牦牛

Linux常用命令 [转]Java实现定时任务的三种方法 访问IIS网站需要输入用户名密码(非匿名登录)问题汇总 IE10、IE11 User-Agent 导致的 ASP.Net 网站无法写入Cookie 问题 端口占用问题 中国电信翼支付网关接口接入 修改Tomcat响应请求时返回的Server内容 模拟用户点击弹出新页面 Eclipse常用设置 Tomcat服务无法启动的问题 JavaScript继承的模拟实现 Windows Server 2008 小操作汇总 手机也能连VPN,再来个远程控制PC这种事你以为我会随便说么! - 牦牛 Windows下Git服务器搭建及使用过程中的一些问题 Oracle PL/SQL中的循环处理(sql for循环) CSS的display小记 博客园添加访问人数统计 IIS故障问题(Connections_Refused)分析及处理 Windows Server 2008自定义桌面
错误:80040154 没有注册类 的问题
牦牛 · 2015-04-18 · via 博客园 - 牦牛

  这其实是个COM组件未注册的问题,虽然以前处理过,不过那是在明确知道哪些COM组件需要注册的情况下,当你不知道或者不熟悉或者忘记的时候,可以尝试用这种方法去解决。

  问题发生在一次业务系统从旧服务器迁移到新服务器的过程中,系统中有和其它厂家做的一个登录验证交互接口,接口的年份有一些历史了,里面有一些需要注册的COM组件也很正常。所以,当系统部署后,运行中出现这个问题时:


第一反应就是到系统盘的 system32 目录下去注册下厂家提供的组件,例如:regsvr32 dsccrypt.dll ;但是把所有能注册的DLL 都注册过之后,居然还是报这个错误。
  唉,顿时好心塞。还好,上面截图的错误提示中,提供了未注册的DLL组件的clsid值,似乎有一丝希望了。我们把这个clsid值复制下来,到系统能运行正常的旧服务器上的注册表中搜一搜:

看到没?还真有,InprocServer32中还有这个DLL的物理路径。什么鬼!原来是放在个毫不起眼的以为没啥用的目录下。
然后把这个DLL文件复制到新服务器上,如果迁移时已经复制过去了,就找到这个路经下的文件,重新注册下:regsvr32 WebPro.dll ,问题就解决了。。。

  另外,如果是64位的操作系统要注册32位的COM组件,需到 C:\windows\sysWOW64\regsvr32.exe 目录下,因为默认的C:\windows\system32\regsvr32.exe 是64位版的。