Office 2003のVSTO 2005 Officeアドインが.NET 2用に構築されていますが、これは正常に動作しますが、.NETフレームワーク4はではなく、がインストールされています。.NET Framework 4がインストールされていると、VSTO 2005アドインが起動しない
.NET Framework 4をインストールすると起動しません。私は0
に環境変数VSTO_SUPPRESSDISPLAYALERTS
を設定することで、デバッグを有効にしているので、私は、Officeアプリケーションの起動時にエラーを見ることができます:
「Microsoft.VisualStudio.Tools.Applications.Runtime.DomainFactory」のタイプ初期化子が例外を投げました。
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.Tools.Applications.Runtime.DomainFactory' threw an exception. ---> System.NotSupportedException: The Microsoft .NET Framework 2.0 or later is not correctly installed. Microsoft Visual Studio 2005 Tools for the Microsoft Office System requires the Microsoft .NET Framework 2.0 or later."
at Microsoft.VisualStudio.Tools.Applications.Runtime.PolicyInfo.InitializeFromConfigurationFiles(PolicyLevel& enterprisePolicy, PolicyLevel& machinePolicy, PolicyLevel& userPolicy)
at Microsoft.VisualStudio.Tools.Applications.Runtime.PolicyInfo..ctor()
at Microsoft.VisualStudio.Tools.Applications.Runtime.DomainFactory..cctor()
--- End of inner exception stack trace ---
私はこれとどこに行くべきかわからないので、何か助けやアイデアをいただければ幸いです。
さらに詳しい情報を収集する必要があります。こちらのトラブルシューティングのヒントをご覧ください:http://blogs.msdn.com/b/brijs/archive/2008/10/10/tips-tricks-for-troubleshooting-for-office-add-ins-part-1 .aspx – Eddy
私はちょうど私のアドインがインストールされたことを伝えたAddInSpyを試しました。 – Cocowalla