C#에서 Word 2007 용 추가 기능을 작성했습니다. 추가 기능을 배포하기 위해 ClickOnce 설치 관리자를 사용했습니다. 그러나이 추가 기능은 그것은 vsto.log 파일에 다음과 같은 오류가 발생합니다 워드 2010에서 작동하지 않습니다Word 2007 AddIn이 Word 2010에서 작동하지 않습니다.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at Microsoft.VisualStudio.Tools.Office.Word.Internal.IWordHostItemProviderProxy..ctor(IHostItemProviderExtendedContract hostItemProvider)
at Microsoft.VisualStudio.Tools.Office.Word.Internal.IWordHostItemProviderProxy.GetProxy(IHostItemProviderExtendedContract contract)
at Microsoft.VisualStudio.Tools.Office.Word.Internal.LocalWordServiceProvider.GetService(Type serviceType)
at Microsoft.VisualStudio.Tools.Applications.Internal.LocalServiceProvider.System.IServiceProvider.GetService(Type serviceType)
at Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase.Microsoft.VisualStudio.Tools.Applications.Runtime.IEntryPoint.Initialize(IServiceProvider hostContext)
at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.ExecutePhase(ExecutionPhases executionPhases)
at Microsoft.VisualStudio.Tools.Office.Internal.OfficeAddInAdapterBase.InitializeEntryPointsHelper()
을 나는 Microsoft.Office.Interop 사이 버전 불일치가 있음을 이해하지만. 추가 기능이있는 Word dll과 Word 2010과 함께 사용 가능한 시스템에서이 문제를 해결할 수있는 방법을 모릅니다. 나는 약간의 구글 검색을했으나 재미있는 것은 아무것도 없었다. 도와주세요.
사용중인 VSTO 및 .NET의 버전은 무엇입니까? – dan9298