The type or namespace name "Excel" does not exist in the namespace "Microsoft.Office.Interop". is another solution for missing assembly references

Source: Internet
Author: User

has always been using TFS for source control, the system is deployed by my native build post to the server, one day, when the publish operation, reported

The type or namespace name "Excel" does not exist in the namespace "Microsoft.Office.Interop". is missing the assembly reference "error, first Google and Baidu, then a bunch of balabalabala, what to reload office, what to change the registry, what to reference the DLL, and so on, and finally found out because the Web. config

<assemblies> section, to write to the GAC in office 2010, it's possible that someone in our team changed the Web. config, and I got it, and if anyone else has the problem, it's simple,

Add the following entries to the <assemblies> section

<add assembly= "Microsoft.Office.Interop.Excel, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "/>
<add assembly= "Microsoft.Office.Interop.Word, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "/>

Thank you

The type or namespace name "Excel" does not exist in the namespace "Microsoft.Office.Interop". is another solution for missing assembly references

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.