![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I get the following error when I try to debug/run the word 2007 addin? Public Class ThisAddIn Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup End Sub Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown System.Windows.Forms.MessageBox.Show("hhhhhhhhhhhh hhhhhhhhhhhhhhh") End Sub End Class 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. ************** Exception Text ************** 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(IHostItemProvider ExtendedContract hostItemProvider) at Microsoft.VisualStudio.Tools.Office.Word.Internal. IWordHostItemProviderProxy.GetProxy(IHostItemProvi derExtendedContract contract) at Microsoft.VisualStudio.Tools.Office.Word.Internal. LocalWordServiceProvider.GetService(Type serviceType) at Microsoft.VisualStudio.Tools.Applications.Internal .LocalServiceProvider.System.IServiceProvider.GetS ervice(Type serviceType) at Microsoft.VisualStudio.Tools.Office.EntryPointComp onentBase.Microsoft.VisualStudio.Tools.Application s.Runtime.IEntryPoint.Initialize(IServiceProvider hostContext) at Microsoft.VisualStudio.Tools.Applications.AddInAda pter.ExecutePhase(ExecutionPhases executionPhases) at Microsoft.VisualStudio.Tools.Office.Internal.Offic eAddInAdapter.InitializeEntryPointsHelper() ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Runtime.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v9.0.d ll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.21022.8 built by: RTM CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.AddIn Assembly Version: 3.5.0.0 Win32 Version: 3.5.21022.8 built by: RTM CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Security Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll ---------------------------------------- System.AddIn.Contract Assembly Version: 2.0.0.0 Win32 Version: 3.5.21022.8 built by: RTM CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn.Contract/2.0.0.0__b03f5f7f11d50a3a/System.AddIn.Contract.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Hosting. v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting. v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting. v9.0.dll ---------------------------------------- System.Deployment Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Runtime. v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime. v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime. v9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.ServerDo cument.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDo cument.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDo cument.v9.0.dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Contract.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Contract.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Contract.v9.0. dll ---------------------------------------- Microsoft.Office.Tools.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.v9.0.dll ---------------------------------------- USAF_WordAddIn Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Projects/USAF_WordAddIn/USAF_WordAddIn/bin/Debug/USAF_WordAddIn.DLL ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Word.AddInAdap ter.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Word.AddInAdap ter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Word.AddInAdap ter.v9.0.dll ---------------------------------------- Microsoft.Office.Tools.Common.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.v9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.AddInAdapter.v 9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v 9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v 9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.AddInAda pter.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.AddInAda pter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.AddInAda pter.v9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Contract .v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Contract .v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Contract .v9.0.dll ---------------------------------------- Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Adapter. v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Adapter. v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Adapter. v9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Word.HostAdapt er.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Word.HostAdapt er.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Word.HostAdapt er.v9.0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.HostAdapter.v9 .0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.HostAdapter.v9 .0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.HostAdapter.v9 .0.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Word.AddInProx y.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.21022.8 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Word.AddInProx y.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Word.AddInProx y.v9.0.dll ---------------------------------------- |
#3
| |||
| |||
|
|
Seems to work when I install the PIA: http://www.microsoft.com/downloads/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&DisplayLang=en Is that intended? It's intended that a .NET Add-in requires the PIA in order to correctly "interpret" between .NET and COM, yes. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |