加载Outlook 2007加载项时出现问题. [英] Problem in loading Outlook 2007 add-in.

查看:245
本文介绍了加载Outlook 2007加载项时出现问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经使用针对Visual Studio 2007的Visual Studio 2008和VSTO 3.0开发了一个Outlook加载项.它在开发计算机中的加载情况很好.

我已经为其开发了一个安装程序,并为最终用户在其他xp sp2计算机中安装了以下所有必备组件:

MS-Office 2007和Microsoft .NET Framework 3.5 sp1
适用于Microsoft Office系统(3.0版运行时)的Microsoft Visual Studio工具
2007 Microsoft Office system的主要互操作程序集.
Windows Installer 3.1

在用户代码组"下,我完全信任拥有dll的整个文件夹.到这里一切都很好,但是我仍然收到错误未加载.加载com加载项期间发生运行时错误'',并且``加载行为''更改为2,而不是3.

我一直在努力解决此问题,但是没有任何事情对我的努力有利.任何帮助将不胜感激.在此先感谢

-Varma

Hello,

I have developed an Outlook Add-In using Visual Studio 2008 and VSTO 3.0 targetted for outlook 2007. It loads fine in the development machine.

I have developed an installer for it and installed all the following prerequisites in a different xp sp2 machine for the end user:

MS-Office 2007 and Microsoft .NET Framework 3.5 sp1
Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0 Runtime)
Primary Interop Assemblies for the 2007 Microsoft Office system.
Windows Installer 3.1

Under the ''User code groups'', I have given full trust to the entire folder where I have the dll. Everything is fine till here, but I still get the error ''Not loaded. a runtime error occurred during the loading of the com add-in'' and the Load Behavior changes to 2 instead of being three.

I have been trying hard to fix this but nothing is favouring my efforts. Any help would be greatly appreciated. Thanks in advance

-- Varma

推荐答案

你好,

我将清单值更改为清单值,将其更改为"C:\ Program Files \ ABC \ crmEZOutlook4Add-In \ crmEZOutlook4.vsto | vstolocal".
现在,在启动Outlook时,我会遇到以下错误:
来自:file:///C:/Program Files/ABC/crmEZOutlook4Add-In/crmEZOutlook4.vsto
应用程序清单的计算哈希值与指定的哈希值不同,或者完全没有指定哈希值.

下一步,

1)我编辑了"ThisAddIn.cs"文件并构建了整个项目,并确保下面的文件显示
最新修改日期:
crmEZOutlook4.vsto
crmEZOutlook4.dll
crmEZOutlook4.dll.manifest
crmEZOutlook4.pdb
crmEZOutlook4.dll(Web配置文件)不需要显示最新的修改日期.
其他一些Office参考dll的版本将为12.0.0.0,其余版本为9.0.0.0.


2)在注册表中,在HKEY_CURRENT_USER层次结构下,AddIn键的清单"值应指向
"C:\ Program Files \ ABC \ crmEZOutlook4Add-In \ crmEZOutlook4.vsto | vstolocal".

3)在管理工具"中"Microsoft .NET Framework 2.0配置"的用户代码组下,确保
以下:
a)常规"选项卡中的名称.
b)在会员条件"标签下,
选择此代码组的条件类型:URL
网址:C:\ Program Files \ CompanyName \ productname \ *
c)权限设置选项卡
权限集:FullTrust.

4)根据您的产品功能,如果需要vsto 3.0 sp1
HKEY_LOCAL_MACHINE->软件->微软-> vsto运行时设置->
v9.0.21022表示VSTO 3.0运行时
v9.0.30729表示VSTO 3.0运行时SP1
安装完成后,您可能无法在控制面板的添加/删除程序"中看到"VSTO 3.0运行时SP1".
它可能仍保留为"VSTO 3.0运行时",但注册表项非常适合知道其存在.

毕竟,我的Outlook加载项加载正常.


谢谢&问候,
Varma
Hello,

I changed the manifest value to the Manifest value to ''C:\Program Files\ABC\crmEZOutlook4Add-In\crmEZOutlook4.vsto|vstolocal''.
Now, on startup outlook slapped me with the following error:
From: file:///C:/Program Files/ABC/crmEZOutlook4Add-In/crmEZOutlook4.vsto
Application manifest has either a different computed hash than the one specified or no hash specified at all.

As a next step,

1) I edited the ''ThisAddIn.cs'' file and built the entire project and ensured that files below show
the latest modified date:
crmEZOutlook4.vsto
crmEZOutlook4.dll
crmEZOutlook4.dll.manifest
crmEZOutlook4.pdb
crmEZOutlook4.dll (Web Configuration File) need not show the latest modified date).
Some other office reference dll''s will have ''version 12.0.0.0'' and remaining ''version 9.0.0.0''.


2) In the regsitry, under the HKEY_CURRENT_USER hierarchy, The ''Manifest'' value of the AddIn key should be pointed to
"C:\Program Files\ABC\crmEZOutlook4Add-In\crmEZOutlook4.vsto|vstolocal".

3) Under the user code groups of ''Microsoft .NET Framework 2.0 Configuration'' in ''Administrative Tools'', ensure the
following:
a) The name in the General tab.
b) Under the ''Membership condition'' tab,
Choose the condition type for this code group: URL
URL : C:\Program Files\CompanyName\productname\*
c) Permission set tab
Permission Set: FullTrust.

4) Depending on your product features, if you need vsto 3.0 sp1
HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> vsto runtime Setup ->
v9.0.21022 indicates VSTO 3.0 runtime
v9.0.30729 indicates VSTO 3.0 runtime SP1
You may not be able to see ''VSTO 3.0 runtime SP1'' in the ''Add/Remove programs'' of control panel after u install this;
it may still remain as ''VSTO 3.0 runtime'' but registry entry is perfect to know its existence.

After all this, My outlook add-in loaded fine.


Thanks & Regards,
Varma


这篇关于加载Outlook 2007加载项时出现问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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