2011-03-07 134 views
13

我有一个VSTO插件,我发布在网络共享上。在我的公司,每个人都可以从网络共享中安装和更新此应用程序。在域之外,我无法安装此自定义。我收到以下错误:VSTO Excel 2007插件无法从网络共享安装

Installation error screenshot

详情:

************** Exception Text ************** 
System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for flow or its location is not trusted. Contact your administrator for further assistance. 
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustPromptKeyInternal(ClickOnceTrustPromptKeyValue promptKeyValue, DeploymentSignatureInformation signatureInformation, String productName) 
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInTrustEvaluator.VerifyTrustUsingPromptKey(Uri manifest, DeploymentSignatureInformation signatureInformation, String productName) 
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySecurity(ActivationContext context, Uri manifest, AddInInstallationStatus installState) 
    at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() 
The Zone of the assembly that failed was: 
MyComputer 

我首先想到的是与证书有问题。所以我明确地在客户端机器上安装了证书。这并没有解决它。当我复制flow目录让我们说我的桌面我可以安装和运行插件没有任何问题。所以看起来网络文件夹不是可信任的位置。我将路径Z:/Software/Flow/添加到Excel选项中的受信任位置。该路径自动解析为完整路径// server/data/software/flow /。但是这并没有改变任何东西。有人看过这个吗?

回答

10

found的解决方案。基本上我将网络共享定义为Intranet区域中的受信任站点。

0

您将哪条路径添加到受信任的地点

如果不是“Z:\ Software \ Flow \”,您是否还检查了“该位置的子文件夹也是可信的”选项?

+0

是的,我添加了该路径,并检查了“该位置的子文件夹也是可信的”。该路径立即解析为正确的主机名。 – Jan 2011-03-08 08:48:24