C # An error occurred while referencing Office. word. Microsoft. Office. Interop. Word could not be found.

Source: Internet
Author: User

"Cocould not load file or assembly 'Microsoft. Office. Interop. Word, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies ."

"The system cannot find the file or assembly'' Microsoft. office. interop. word, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c 'or a certain part." Add reference method:

2. The interoperability type "Microsoft. Office. Interop. Word. ApplicationClass" cannot be embedded ". Use the applicable interface instead.

This solution:

The interoperability type "Microsoft. Office. Interop. Word. ApplicationClass" cannot be embedded ". Use the applicable interface instead.

Type: Microsoft. Office. Interop. Word. ApplicationClass. No constructor is defined.

Solution:

In Visual Studio, click the menu item "view-> Solution Resource Manager", open the "reference" folder, and go to "Microsoft. office. interop. on Word, right-click it and select "attribute". In this case, change the value of "embedded interoperability type" in the attribute to "false.

 

 

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.