vs2010,vs2012,vs2013, you cannot embed the interop type "...", instead, use the workaround for the applicable interface

Source: Internet
Author: User

In the VS2013 development environment, C # refers to two problems encountered by COM components:

In the beginning, the COM component is not registered causing the code reference error, then I will use the Administrator command line mode, the COM component:

c:\windows\system32>regsvr32 E:\CjnDesEncrypt.dll

, after executing the command, the Code reference does not report an error, but the following errors are reported in the generation process:

When referencing COM components, there was a failure to embed the interop type "..." instead, use the appropriate interface for the error prompt.

Check the information, find the solution, and record the following:

Select the DLL that was introduced in the project, right-click, select Properties, and set the embed interop type to False.

This ends the problem with the COM component referencing the program

Reference article Source:

Http://www.xuebuyuan.com/272990.html

vs2010,vs2012,vs2013, you cannot embed the interop type "...", instead, use the workaround for the applicable interface

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.