VSTO问题 - 无法创建视觉工作室的Excel工作簿项目 [英] VSTO problem - cannot create visual studio excel workbook project

查看:684
本文介绍了VSTO问题 - 无法创建视觉工作室的Excel工作簿项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建一个Excel 2007工作簿的项目,在Visual Studio 2008中,我得到以下的ErrorMessage:

When I try to create a Excel 2007 Workbook project, in Visual Studio 2008, I get the following errormessage:

项目不能创建因为Excel中的Visual Studio设计时适配器添加入不能正常工作。 Excel中可能禁用了加载项或使其处于非活动状态,或所有加载项可能会在信任中心设置中禁用。检查Excel选项加载项的状态。如果加载项是活跃并启用,重新安装或修复了Office的Visual Studio工具。

Project cannot be created because the "Excel Visual Studio Design-Time Adaptor Add-in" is not working correctly. Excel might have disabled the add-in or made it inactive, or all add-ins might be disabled in your Trust Center settings. Check the add-in status in Excel Options. If the add-in is active and enabled, reinstall or repair Visual Studio Tools for Office.

我已经验证该加载项是不是停用或禁用,我试图修复和卸载/重新安装VSTO几次。

I have verified that the add-in is not inactive or disabled and I have tried to repair and uninstall/reinstall VSTO several times.

该怎么办?

推荐答案

万一你还没有签信任设置,这的 MSDN页面介绍如何

Just in case you haven't checked the trust settings, this MSDN page describes how to.

我碰到这个来到一个MSDN论坛:

I came across this on a MSDN forum:

有关维修工作,你就必须
运行VS命令提示符具有管理员
权限的(点击右键,运行如
管理员)。然后运行这个命令
线:

For the repair to work, you'll have to run the VS Command Prompt with Admin Priviledges (right click, run as administrator). Then run this command line:

C:> AddinUtil
-AddInRoot:%COMMONPROGRAMFILES%\Microsoft
Shared\ VSTA\AppInfoDocument-rebuild

C:>AddinUtil -AddInRoot:"%CommonProgramFiles%\Microsoft Shared\VSTA\AppInfoDocument" -Rebuild

如果它仍然无法正常工作,你也可以
具有一个腐败pipleline店,这
可以是固定这样的:

If it still doesn't work, you may also have a corrupt pipleline store, which can be fixed like this:

C:> AddinUtil
-PipelineRoot:%COMMONPROGRAMFILES%\Microsoft
Shared\VSTA\Pipeline - 重建

C:>AddinUtil -PipelineRoot:"%CommonProgramFiles%\Microsoft Shared\VSTA\Pipeline" -Rebuild

您会得到从
命令了一条警告信息,但是,预计。

You'll get one warning from that command but that is expected.

如果做不到这一点,我想你将不得不运行在Visual Studio 2008中安装一个修复(将安装DVD驱动器中,并选择修复选项)。

Failing that, I think you will have to run a repair on the Visual Studio 2008 installation (put the installation DVD in a drive, and select the repair option).

这篇关于VSTO问题 - 无法创建视觉工作室的Excel工作簿项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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