The referenced component "Microsoft. Office. Core" cannot be found"

Source: Internet
Author: User

1. Delete the original Excel reference from web. config.
2. in Visual Studio
2005 in the command prompt tool, go to the Excel installation directory and run "tlbimp
Excel.exe command, compile excel.exe as Excel. dll. In this step,
The excell. dll is generated under the office11 (office2003) directory, so you need to find excel. dll under this directory when referencing it.

3. reference the compiled excel. dll. If you have a reference to Microsoft. Office. InterOP. Excel, delete it. As long
The folder contains Excel. dll.

 

 

Method 2:

Go to solution view. If it is web, right-click the virtual path, add web reference, select Browse, find the DLL file address, and click OK! That's it!


For the console:
The reference method is as follows:


Open solution view, right-click references, select Add reference, browse, find the DLL file address, and then OK!

If you have any questions! Send a message!

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.