2017-11-01 14 views
0

複数の投稿、ブログなどが同じ問題に関連していることは知っていますが、誰も私を助けてくれなかったので、ここでいくつかの専門家の意見を投稿しています。OutlookアドインがWin10に読み込まれていないOffice2016

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

私の見通しのアドインがwin7の、Win8.1は、Outlook 2013に完全に正常に動作し、2016年

問題: OutlookのアドインがOutlookの起動時にアップロードされていない、私が見ますそのLoadBehaviourが3から2に変更されています。 アドインが正常にインストールされているにもかかわらず、インストールされた場所から.vstoファイルをダブルクリックしてインストールすると、Outlookの起動時にアドインが読み込まれません。

私は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のOffice 2016環境にVisual Studioからのアドインのコードを実行しようとすると、アドインは、適切にそこに何の問題がアップロードされません。

私はアドインを展開するために.msiを使用しています。これらの環境でWin7、Win8.1およびそのうまく動作しているかどうかをテストしました。

何か問題が起こっている可能性がありますか?

答えて

0

最後に、私は私の問題を解決することができました。

問題は、私がVisual Studio Installerプロジェクトで持っていたレジストリエントリにありました。

私は[INSTALLDIR]PhishLabs.OutlookAddin.vsto|vstolocalを使用していましたが、Win7、Win8.1のデプロイメントでは正常に動作しましたが、Win10では失敗していました。

INSTALLDIRTARGETDIRに置き換えました。これは現在Win10で問題なく動作しています。

[TARGETDIR]PhishLabs.OutlookAddin.vsto|vstolocalが必要です。

関連する問題