大会的Microsoft.Office.Interop.Word,版本= 15.0.0.0使用Microsoft.Vbe.Interop,版本= 15.0.0.0 [英] Assembly Microsoft.Office.Interop.Word, Version=15.0.0.0 uses Microsoft.Vbe.Interop, Version=15.0.0.0

查看:4130
本文介绍了大会的Microsoft.Office.Interop.Word,版本= 15.0.0.0使用Microsoft.Vbe.Interop,版本= 15.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了微软的Visual Studio 2010的解决方案,并得到这个错误。

I just downloaded MS Visual Studio 2010 solution and get that error.

1时出错大会的Microsoft.Office.Interop.Word,版本= 15.0.0.0,   文化=中性公钥= 71e9bce111e9429c'用途   Microsoft.Vbe.Interop,版本= 15.0.0.0,文化=中立,   公钥= 71e9bce111e9429c'具有更高版本比   引用的程序集'Microsoft.Vbe.Interop,版本= 14.0.0.0,   文化=中性公钥= 71e9bce111e9429c'   C:\ PROJECTS \ UHelper \大会\ Microsoft.Office.Interop.Word.dll   AcceptService.Web

Error 1 Assembly 'Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' c:\PROJECTS\UHelper\Assemblies\Microsoft.Office.Interop.Word.dll AcceptService.Web

我已经安装了微软Office 2010。 我必须提到Microsoft.Office.Interop.Word.dll内的项目本地副本。

I have MS Office 2010 installed. I have reference to local copy of Microsoft.Office.Interop.Word.dll within project.

任何线索如何解决呢?

推荐答案

首先,我得到这个<一href="http://answers.microsoft.com/en-us/office/forum/office_2010-word/unable-to-cast-com-object-of-type/34efcd57-e819-4a83-9cdd-501ab15b0971"相对=nofollow>页面,我认为应该是有用的。但事实并非如此。 :( 无论如何,我把那个链接,以便它的可以对别人有用的。

First I got this page that I assumed should be useful. But it was not. :( Anyway I put that link so it CAN be useful for someone else.

第二点是使用的意见,我发现<一href="http://stackoverflow.com/questions/6327252/using-microsoft-office-interop-word-assembly">here

Second point was to use advice that I found here

所以我浏览到 http://www.microsoft。 COM / EN-US /下载/ details.aspx?ID = 18249 并安装 Microsoft Office 2010的主互操作程序集引导程序包

So I navigated to http://www.microsoft.com/en-us/download/details.aspx?id=18249 And installed Microsoft Office 2010 Primary Interop Assemblies Bootstrapper Package.

最后,我删除了 Microsoft.Office.Interop.Word.dll 项目参考,并添加另外一个

And finally I deleted Microsoft.Office.Interop.Word.dll reference in the project and added another one

的Visual Studio安装PIA的,这些拷贝到以下位置   在开发计算机上中:%ProgramFiles%\微软的Visual Studio   12.0 \ Visual Studio工具用于Office \ PIA \ OFFICE14(或的%ProgramFiles(x86)的%\微软的Visual Studio 12.0 \ Visual Studio工具   对于Office \ PIA \ OFFICE14在64位操作系统)   的%ProgramFiles%\微软的Visual Studio 12.0 \ Visual Studio工具   办公室\ PIA \ Office15(或的%ProgramFiles(x86)的%\微软的Visual Studio   12.0 \ Visual Studio工具用于Office \ PIA \ Office15在64位操作系统)

Visual Studio installs these copies of PIAs to the following locations on the development computer: %ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14 (or %ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14 on 64-bit operating systems) %ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15 (or %ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15 on 64-bit operating systems)

和耶!错误走了! :)

And yeah!!! Error gone! :)

这篇关于大会的Microsoft.Office.Interop.Word,版本= 15.0.0.0使用Microsoft.Vbe.Interop,版本= 15.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆