C # office programming -- word Error Type: "Microsoft. Office. InterOP. Word cannot be found"
Today, I used C # To write an application such as searching for the specified text in word. The compilation result is incorrect:
"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."
After online query, I learned that I installed Office 2003 before installing. NET Framework. Therefore, "Office 2003 Master InterOP assembly" is not automatically installed when installing Office 2003 ".
Solution: Install "Office 2003 main InterOP assembly"-it is an optional component of Office 2003. If you have an office 2003 installer or a CD, you can run the installer again, select "add or delete components", select "Advanced custom applications", and expand application-specific nodes. For example, to obtain Microsoft Office Word 2003 Pia, expandMicrosoft Office WordNode and select. Net programmability support (. NET programmable Support). Click. Net programmability support (. NET programmable Support)Click the drop-down arrow next to it to select the update option and selectRun from my computer (run from local machine ). Click "Update. You can !!!
This problem occurs in office software such as Excel and access.
Source: http://www.cnblogs.com/fineboy/archive/2007/11/20/965816.html