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.