无法加载文件或程序集“Microsoft.mshtml ......强名称验证失败 [英] Could not load file or assembly 'Microsoft.mshtml ... Strong name validation failed

查看:1413
本文介绍了无法加载文件或程序集“Microsoft.mshtml ......强名称验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个WPF / C#程序,我使用所见即所得的HTML编辑互联网的控制。

I made a WPF/C# program and I am using the internet control for WYSIWYG HTML editing.

这是一个普通的可执行程序。

it is a regular Executable program.

它工作在大多数计算机上,但有些电脑是给我下面的错误。

it works on most computers however some computers are giving me the following error.

无法加载文件或组装
'Microsoft.mshtml,版本= 7.0.3300.0,
区域性=中性,
公钥= b03f5f7f11d50a3a'或
它的一个依赖。强名称
验证失败。

Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed.

在'Microsoft.mshtml.dll'文件与程序分配。它与所有在同一文件夹中的exe文件其他所需的dll的。

The 'Microsoft.mshtml.dll' file is distributed with the program. It is with all of the other required dlls in the same folder as the exe file.

下面就是从输出 Fuslogvw

*** Assembly Binder Log Entry  (1/14/2010 @ 6:36:51 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  C:\Documents and Settings\office\Desktop\Database\DATABASE.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = CAMPUSREMOTE\office
LOG: DisplayName = Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/office/Desktop/Database/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = DATABASE.exe
Calling assembly : ChabadOnCampusMainFrontEnd, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Start binding of native image Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
WRN: No matching native image found.



感谢

Thanks

推荐答案

验证Microsoft.mshtml.dll文件,用该程序分布是PIA文件,而不是一个Office文件。一些网站声称,Office文件被延迟签名和PIA文件(与VS安装安装)是一个签署的副本。我的电脑上我有3个不同版本的Microsoft.mshtml.dll'文件,(同一个文件的大小,但不同的内容):

Verify that the 'Microsoft.mshtml.dll' file, distributed with the program is the PIA file and not an Office file. Some sites claims that the Office files are "delay signed" and the PIA file (installed with the VS installation) is a signed copy. on my computer I have 3 different versions of 'Microsoft.mshtml.dll' file, (same file-size, but different content):


  1. C:\Program Files\Microsoft的Visual Studio 9.0\Visual Studio工具Office\PIA\Office11\Microsoft.mshtml.dll

  1. "c:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11\Microsoft.mshtml.dll"

C:\Program Files\Microsoft的Visual Studio 9.0\Visual Studio工具Office\PIA\Office12\Microsoft.mshtml.dll

"c:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12\Microsoft.mshtml.dll"

C:\Program Files\Microsoft.NET\Primary互操作Assemblies\Microsoft.mshtml.dll

"c:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll"

从项目中删除Microsoft.mshtml.dll参考。
使用添加引用,。NET选项卡,选择PIA文件,请使用复制loacal选项。
(它的工作对我来说。)

Remove "Microsoft.mshtml.dll" reference from the project. Use "Add Reference", ".Net" tab, select the PIA file, use "copy loacal" option. (It worked for me . . .)

Atara

这篇关于无法加载文件或程序集“Microsoft.mshtml ......强名称验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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