Strong name signature not valid for this assembly Microsoft.mshtml.dll

Strong name signature not valid for this assembly Microsoft.mshtml.dll 

 

http://social.msdn.microsoft.com/Forums/windows/en-US/9b5a07e0-bb1f-4f3d-90fc-40777f1f5800/strong-name-signature-not-valid-for-this-assembly-microsoftmshtmldll?forum=winformssetup

 

Hi, people.

I believe that I solved the problem, definitively, for "Strong name signature not valid for this assembly Microsoft.mshtml.dll"

 

When we use a DLL witch is a ordinary Windows file the application, after installed by ClickOnce, try to use the system reference by the DLL, not that one Visual Studio used by build the our program.

Then, to solve that, we must enforce the use of the correct file...

 

  1. 1.       Open the “References” folder in Solution Explorer;
  2. 2.       Click over the DLL name;
  3. 3.       Look at property windows and certify you are using the correct version of DLL (in case of Microsoft.mshtml.dll, you must use the file in “C:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll”), verify it at property Path;
  4. 4.       Then, attrib the follow properties:
  • Copy Local = True
  • Specific Version = True

 

After this, you are sure that the ClickOnce will install and enforce the use of the DLL that you referenced in your project, avoiding the wrong reference by the default file installed by the windows or the MS Office.

转载于:https://www.cnblogs.com/Tonyyang/p/ClickedOnce.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值