2017-11-01 19 views
0

여러 게시물, 블로그 등이 동일한 문제와 관련되어 있지만 그 중 아무도 나를 도와주지 않으므로 일부 전문가 의견을 위해이 질문을 게시하고 있습니다. 의 Outlook 추가 기능은 전망 시작할 때까지로드되지, 내가 볼 :Outlook 추가 기능이 Win10에로드되지 않습니다. Office2016

Environment: Windows 10, Office 2016, .Net Framework 4.5.1, Visual Studio 2010 Tools for Office runtime

내 전망의 추가 기능은 2016 년이

문제 Win7에, Win8.1, 아웃룩 2013에 완벽하게 잘 작동 그 LoadBehaviour이 3에서 2로 변경 중입니다. 추가 기능이 성공적으로 설치되었지만 여전히 Outlook 시작 중에 추가 기능이로드되지 않은 설치 위치에서 .vsto 파일을 두 번 클릭하여 설치하면.

Hamed Ahmadi in his blog에 제공된 모든 단계를 수행했습니다. 그러나 그들 중 누구도 도움이되지 않았습니다.

퓨전 로그 :

The operation was successful. 
Bind result: hr = 0x0. The operation completed successfully. 

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 
Running under executable C:\Windows\syswow64\MsiExec.exe 
--- A detailed error log follows. 

=== Pre-bind state information === 
LOG: Where-ref bind. Location = C:\Program Files (x86)\myaddin\myaddin.OutlookAddin\myaddin.OutlookAddin.dll 
LOG: Appbase = file:///C:/Windows/syswow64/ 
LOG: Initial PrivatePath = NULL 
LOG: Dynamic Base = NULL 
LOG: Cache Base = NULL 
LOG: AppName = MsiExec.exe 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in LoadFrom load context. 
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). 
LOG: No application configuration file found. 
LOG: Using host configuration file: C:\Users\anupraj\AppData\Local\Temp\CFG1405.tmp 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. 
LOG: Attempting download of new URL file:///C:/Program Files (x86)/myaddin/myaddin.OutlookAddin/myaddin.OutlookAddin.dll. 
LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\myaddin\myaddin.OutlookAddin\myaddin.OutlookAddin.dll 
LOG: Entering run-from-source setup phase. 
LOG: Assembly Name is: myaddin.OutlookAddin, Version=1.0.4.0, Culture=neutral, PublicKeyToken=08126df2ce1c130e 
LOG: Re-apply policy for where-ref bind. 
LOG: Post-policy reference: myaddin.OutlookAddin, Version=1.0.4.0, Culture=neutral, PublicKeyToken=08126df2ce1c130e 
LOG: GAC Lookup was unsuccessful. 
LOG: Where-ref bind Codebase does not match what is found in default context. Keep the result in LoadFrom context. 
LOG: Binding succeeds. Returns assembly from C:\Program Files (x86)\myaddin\myaddin.OutlookAddin\myaddin.OutlookAddin.dll. 
LOG: Assembly is loaded in LoadFrom load context. 

나는 융합을 읽기에 익숙하지 그게 무슨 말을 공제하여 수없는 기록입니다.

나는이 Github Code을 사용하여 피곤한 AddinSpy를 사용하고 있지만이 추가 기능을 사용하려면 예외가 발생합니다.

System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length. 
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) 
    at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex) 
    at AddInSpy.ILReader.Next() in e:\POC\AddInSpy-master\AddInScanEngine\ILReader.cs:line 79 
    at AddInSpy.ILReader.<GetEnumerator>d__0.MoveNext() in e:\POC\AddInSpy-master\AddInScanEngine\ILReader.cs:line 51 
    at AddInSpy.AssemblyScanner.CheckCustomTaskPaneType(Assembly assembly, ArrayList& assemblyInfo) in e:\POC\AddInSpy-master\AddInScanEngine\AssemblyScanner.cs:line 251 

참고 :이 Win10 오피스 2016 환경에 추가 코드를 비주얼 스튜디오에서 실행하려고하면 추가 기능이 제대로로드,이 문제없이.

내 추가 기능을 배포하기 위해 .msi를 사용 중이며 Win7, Win8.1 및이 환경에서 정상적으로 작동하는지 테스트를 거쳤습니다.

실마리가 될지도 모르는 단서가 있습니까?

답변

0

마지막으로 내 문제를 해결할 수있었습니다.

Visual Studio Installer 프로젝트에 있던 레지스트리 항목에 문제가있었습니다.

[INSTALLDIR]PhishLabs.OutlookAddin.vsto|vstolocal은 Win7, Win8.1 배포에서 완벽하게 작동하지만 Win10에서는 실패했습니다.

INSTALLDIRTARGETDIR으로 바꿨습니다. 이제 Win10에서 잘 작동합니다.

[TARGETDIR]PhishLabs.OutlookAddin.vsto|vstolocal이 필요합니다.