Winform mshtml application error

Source: Internet
Author: User

Error message:

System. reflection. targetinvocationexceptioN: The call Target has an exception. --->
System. Io. fileloadexception: failed to Load file or assembly "Microsoft. mshtml, version = 7.0.3300.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" or one of its dependencies. Strong name verification failed. (Exception from hresult: 0x8013141a)

File Name: "Microsoft. mshtml, version = 7.0.3300.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" ---> system. Security. securityexception: a strong name verification fails. (Exception from hresult: 0x8013141a)


My project references mshtml. dll, but after the release, the application displays an error on another computer. Solution:


1. Click Microsoft. mshtml properties in the project resource management manager.

2. First, change the interoperability type to false, and then modify the local copy to true.

3. After the application is released, mshtml. dll will be inside the package.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.