MSHTML大错误 [英] MSHTML Big Error

查看:135
本文介绍了MSHTML大错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

严重程度 代码
说明 项目
文件
抑制状态

警告 无法找到类型库"MSHTML"的包装程序集。验证(1)COM组件是否已正确注册,以及(2)您的目标平台是否与
COM组件的位数相同。例如,如果COM组件是32位,则目标平台不能是64位。

Zombsroyale BR < g class =" gr_ gr_8 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 8英寸id =" 8"> 非官方< / g> 应用


这是一个警告,它看起来像< g class =" gr_ gr_126 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace"数据-GR-ID =" 126" id =" 126"> that:< / g>
http://prntscr.com/mbs9i4



当我添加MSHTML库时,它总会发生< g class =" gr_ gr_164 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 164" id =" 164"> refrence< / g>。

解决方案

嗨Jason,


欢迎来到MSDN论坛。


您的vs版本和操作系统版本是什么?


根据错误消息,似乎此com组件未正确注册。请看一下这个

类似的问题


如果此Microsoft.mshtml.dll已经在GAC文件夹下(C:\ Windows \\\\\\\\\\\\\ ),导航到该文件夹​​并使用regasm命令注册程序集:regasm Microsoft.mshtml.dll。



相关链接:
http://techninotes.blogspot.com/2016/08/fixing-cannot-find-wrapper-assembly-for.html



注意:以管理员身份运行VS的开发人员命令提示符。


希望这有帮助。


最好的问候


兰斯


Severity Code Description Project File Line Suppression State
Warning Cannot find wrapper assembly for type library "MSHTML". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit. Zombsroyale BR <g class="gr_ gr_8 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="8" id="8">Unoffical</g> App

It's a warning, it looks like <g class="gr_ gr_126 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="126" id="126">that :</g> http://prntscr.com/mbs9i4

It always happens when I add the MSHTML library <g class="gr_ gr_164 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="164" id="164">refrence</g>.

解决方案

Hi Jason,

Welcome to the MSDN forum.

What’s your vs version and OS version?

According to the error message, it seems that this com component is not registered correctly. Please take a look at this similar issue .

If this Microsoft.mshtml.dll already under the GAC folder(C:\Windows\assembly\GAC), navigate to the folder and register the assembly using the regasm command: regasm Microsoft.mshtml.dll.

Related link: http://techninotes.blogspot.com/2016/08/fixing-cannot-find-wrapper-assembly-for.html

Note: Run the Developer command prompt for VS as administrator.

Hope this helps.

Best Regards

Lance


这篇关于MSHTML大错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆