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.