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