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

推荐订阅源

罗磊的独立博客
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
博客园 - 【当耐特】
H
Heimdal Security Blog
腾讯CDC
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threatpost
月光博客
月光博客
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
T
Troy Hunt's Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
D
DataBreaches.Net
O
OpenAI News
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
小众软件
小众软件
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
美团技术团队
P
Privacy International News Feed

博客园 - 谢小漫

弹出选择窗体控件(附源码) 获取枚举描述信息(Description)2 - 谢小漫 - 博客园 导出所有用户表到excel Sql Server数据导出EXCEL C#的串口编程 DataReceived XML-RPC.NET的X509Certificates如何使用呢 XML-RPC.NET 在读《C#和.NET 2.0实战》 如何在ASP.NET中做异步 如何在winform中用委托做异步 C#的串口编程 重新开始学习.net 在看Test-Driven Development In Microsoft .NET 最近了解过的一个支付接口 网站的第三天 BAIDU的第一个搜索访问进入网站 不错的日期选择 星期六提交sitemap 关于代码自动生成器
mshtml组件引用的问题
谢小漫 · 2009-06-11 · via 博客园 - 谢小漫

在一个系统里边应用了一个htmleditor,winform的程序,需要引用Microsoft.mshtml.dll。
所以就引用了.net下的这个文件。添加引用>>.net>>选择Microsoft.mshtml。

开发过程一切完好,没有遇到任何问题。但是部署到另外的一台机器的时候,就出现了,找不到引用的Microsoft.mshtml.dll的问题。看程序目录下也是没有mshtml.dll类似的文件。

看来是这个Microsoft.mshtml.dll出问题了,到网上搜索了一下:
得到以下文章:Microsoft.mshtml到底是什么? (http://www.cnblogs.com/waxdoll/archive/2005/04/08/134196.html

仔细阅读:原来在COM组件引用里边还有一个mshtml的引用东西。一共有两个mshtml。(以下原文引用):
.NET系统附带了一个mshtml.dll的Interop封装,理论上来说自然无法脱离COM独立存在,但是既然是Interop包装过的,那么在.NET环境中的使用肯定就要比直接调用COM组件有优势。

开始还想着到C盘里边把Microsoft.mshtml.dll拷贝到程序目录了事算了,搜素了一下,发现问题严重了,这是个2.98 MB的大家伙。可是不引用这个可以吗?
好在搜索这个的时候出现了另外两个好东西:WindowsLive.Writer.Interop.Mshtml.dll(165k)和WindowsLive.Writer.Mshtml.dll(113k)。

所以在程序里边删除了Microsoft.mshtml.dll的引用,换上了113k的dll的引用,发现不行。在换上WindowsLive.Writer.Interop.Mshtml.dll(165k),终于可以成功了。嗯,这个小块头的mshtml.dll可以替换掉3M的的那个Microsoft.mshtml.dll,不错,不错。

然后,打开对象浏览器,把两个dll文件对比了一下,不出所料:小的dll是也是针对mshtml COM的封装。WindowsLive.Writer.Interop.Mshtml.dll这个是在Live Writer的里边的,LiveWriter里边也有一个htmleditor,原来上应该和我现在用的htmleditor差不多。

在自己blog上发过,又转这边来了。