2016-11-02 3 views
0

나는 다음과 같은 예외가 얻을 다른 컴퓨터에 설치하려고 반면에 FTP 서버에서 아웃룩 2007 VSTO 추가 기능을 설치할 수 없습니다 :다른 기계

[12:22:33] Shekhar Pandey: Name: OutlookAddIn1 
From: https://www.emailcipher.com/outlook/OutlookAddIn1.vsto 

Exception Text 
System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for OutlookAddIn1 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 

[12:22:48] Shekhar Pandey: 

Exception Text 
System.Security.SecurityException: Customized functionality in this application will not work because the certificate used to sign the deployment manifest for OutlookAddIn1 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 

배포 매니페스트의 URL은 다음과 같습니다 https://www.emailcipher.com/outlook/OutlookAddIn1.vsto

VSTO Addin을 어떻게 배포 할 수 있습니까?

답변

1

배포 매니페스트를 보면 ID가 CN=Abc\Dell 인 인증서가 Authenticode로 서명되지 않았고 게시 된 URL을 사용하여 다른 컴퓨터에 배포했다고 가정합니다. (당신이 게시 된 URL에서 제목에 ftp하지만 https 말 때문에 그러나 나는 100 % 후자에 대해 잘 모르겠어요.)

먼저 the options here를 사용하여 Trusted sites 목록에 클라이언트 시스템에 URL을 추가해야합니다. Internet Explorer에서 .vsto를 열고 페이지 속성을 보면이를 확인할 수 있습니다. ZoneTrusted sites이어야하며 Internet이 아야합니다. Trusted sites 목록을 변경할 수없는 경우 URL을 Local intranet 영역에도 추가 할 수 있습니다.

동일한 오류 메시지가 계속 나타나면 the commands here을 사용하여 클라이언트 컴퓨터의 Trusted Publishers에 인증서를 추가해야합니다. 명령 줄을 사용하지 않으려면 MMCCertificates 스냅인을 사용하거나 the method here을 사용하여 동일한 in the GUI을 수행 할 수 있습니다. 클라이언트 도메인의 그룹 정책에서 액세스를 제한하고 있기 때문에 Trusted Publishers에 인증서를 추가 할 수있는 권한이없는 경우 the Group Policy settings here을 확인해야합니다.

클라이언트가 Windows Server OS를 사용하는 경우 the settings here을 사용하여 Internet Explorer 보안 강화 구성 (IEESC)을 비활성화해야 할 수도 있습니다. (최소한 배포 기간 동안)

마지막으로 the registry keys here을 사용하여 포함 목록의 레지스트리를 확인할 수도 있습니다.

Trusted sites에 URL을 추가하면 VSTO 배포 작업을 수행하는 데 충분해야합니다. 그렇지 않은 경우 Trusted Publishers에 인증서를 추가하는 것이 가장 좋은 방법입니다.

+0

그래서 내 플러그인을 설치할 모든 클라이언트 컴퓨터를 변경해야합니다. 다른 방법이 있습니까 –

+0

https://www.emailcipher.com/outlook/setup.exe 내 플러그인에 대한 링크입니다. 시스템에서도 확인하십시오. –

+0

@SonikaSood VSTO를 배포하는 자체 Setup.exe가있는 경우 순수한 ClickOnce 배포보다 약간 쉽습니다. 이 코드를 사용하여 설치 프로세스 중에 포함 목록에 인증서를 추가 할 수 있습니다. http://stackoverflow.com/questions/40025720/unable-to-run-excel-vsto-add-ins/40042872#40042872 적어도 Setup.exe가 로컬 경로에 매니페스트를 배포하면 VSTO의 신뢰를 성공적으로 사용할 수 있습니다. (Excel VSTO Addin을 배포하는 내 Setup.exe에서 동일한 코드를 사용하고 있습니다.) – haindl