Post-Release issues when mshtml is used in the net 2.0 Program

Source: Internet
Author: User

Recently, the MSHTML component was used to control various elements in the web page in the C # WinForm program and test everything on your computer. However, when the client is released, some of these functions are always unavailable (the most annoying is that the program does not report an error). After many tests, I finally found that the client cannot call the MSHTML component normally!
The MSHTML component is a COM component released by Microsoft. It is installed by default in most Windows. COM components do not have any problems, so there is only one possibility:. Net encapsulation. After careful viewing, VS2005 put the COM component's fuse library in the Windows directory, rather than in the Debug or Release directory of the program as in the VS2003 era,

 

After understanding this principle, the solution is simple. You just need to copy Microsoft. MSHTML. dll referenced by mshtml to your EXE directory for release!

Appendix: Microsoft. mshtml. dll

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.