Error 155 assembly "Microsoft. Office. InterOP. Excel, version = 12.0.0.0 reprint

Source: Internet
Author: User

From: http://www.haogongju.net/art/1068056

Error 155 assembly "Microsoft. office. interOP. microsoft. VBE. interOP, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "is later than the referenced assembly" Microsoft. VBE. interOP, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c"

Solution

An error occurred while running: failed to load the file or assembly "Microsoft. Office. InterOP. Excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c" or a dependent item. The system cannot find the specified file.

Solution:
1. Install Office 2003;
2. Install vstor.exe;
3. Install o2003pia. EXE;
4. Numerous server restarts and IIS restarts;
5. Install "programmable support": "change" The Office in "add or delete programs", and reinstall the missing components. The procedure is as follows:

For example, advanced user-defined applications

For example, select "run from local" or "Run all programs from local" from the drop-down menu of the ". Net programmable support" option ".

After steps 1 and 5 are applied, the problem is resolved for the following reasons:

"Excel 2003" is installed in the system, but it is not installed in GAC. (For details about GAC Global Assembly Cache, refer to the msdn help .) There may be two possible causes: one is that the installation is performed in the office.. NET Framework is installed before, and the other is missing the ".. Net programmable support ". In step 2, we will install Office 5th PIA (Master InterOP Assembly) to GAC. We can see from the following directory: "C: \ WINDOWS \ assembly ", as a result, the problem described in the question is solved.

Similarly, you can refer to this method to reference other assembly in Asp.net for similar issues.

If not, download a Pia.

Http://www.microsoft.com/downloads/en/details.aspx? Familyid = 3c9a983a-ac14-4125-8ba0-d36d67e0f4ad & displaylang = en

Install it in the "C: \ WINDOWS \ assembly" directory, restart your computer, and add the reference -- Microsoft Excel 11.0 Object Library 1.5 in the reference set.

An error occurred while running: failed to load the file or assembly "Microsoft. Office. InterOP. Excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c" or a dependent item. The system cannot find the specified file.

Solution:
1. Install Office 2003;
2. Install vstor.exe;
3. Install o2003pia. EXE;
4. Numerous server restarts and IIS restarts;
5. Install "programmable support": "change" The Office in "add or delete programs", and reinstall the missing components. The procedure is as follows:

For example, advanced user-defined applications

For example, select "run from local" or "Run all programs from local" from the drop-down menu of the ". Net programmable support" option ".

After steps 1 and 5 are applied, the problem is resolved for the following reasons:

"Excel 2003" is installed in the system, but it is not installed in GAC. (For details about GAC Global Assembly Cache, refer to the msdn help .) There may be two possible causes: one is that the installation is performed in the office.. NET Framework is installed before, and the other is missing the ".. Net programmable support ". In step 2, we will install Office 5th PIA (Master InterOP Assembly) to GAC. We can see from the following directory: "C: \ WINDOWS \ assembly ", as a result, the problem described in the question is solved.

Similarly, you can refer to this method to reference other assembly in Asp.net for similar issues.

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.