S
ssissa
Hi,
I have a set of IDTExtensibility2 based add-ins developed with .NET 2.0. I
have addins for Word, Outlook, PowerPoint, and Excel. They all use the same
IDTExtensibility2 implementation. The addins load fine in Outlook and
PowerPoint, but not in Word or Excel.
I set the registry value
HKLM\Software\Microsoft\.NETFramework\ExposeExceptionsInCOM=2 to discover the
following error (sorry, it's a French OS):
System.IO.FileNotFoundException: Le fichier ou l'assembly nommé
SystranOfficePlugins ou l'une de ses dépendances, est introuvable. Nom du
fichier : "SystranOfficePlugins"
=== Pre-bind state information ===
LOG: DisplayName = SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28 (Fully-specified)
LOG: Appbase = C:\Program Files\Microsoft Office\OFFICE11\
LOG: InitialPrivatePath = NULL
Calling assembly : (Unkown).
===
LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found
LOG: Host configuration file not found
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: SystranOfficePlugins, Version=6.1.0.0,
Culture=neutral, PublicKeyToken=64fcb621891dba28
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins/SystranOfficePlugins.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins/SystranOfficePlugins.EXE.
Here are the relevant registry keys for my installation:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\Systran6.OfficePluginConnect]
"LoadBehavior"=dword:00000003
[HKEY_CLASSES_ROOT\Systran6.OfficePluginConnect]
@="Systran6.OfficePluginConnect"
[HKEY_CLASSES_ROOT\Systran6.OfficePluginConnect\CLSID]
@="{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}]
@="Systran6.OfficePluginConnect"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\Implemented Categories]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\Implemented Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\InprocServer32]
@="mscoree.dll"
"ThreadingModel"="Both"
"Class"="Systran6.OfficePluginConnect"
"Assembly"="SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///C:/Program Files/SYSTRAN/601/SystranOfficePlugins.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\InprocServer32\6.1.0.0]
"Class"="Systran6.OfficePluginConnect"
"Assembly"="SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///C:/Program Files/SYSTRAN/601/SystranOfficePlugins.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\ProgId]
@="Systran6.OfficePluginConnect"
I tried to put the dll in the GAC, using the following command line:
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
But I have the same problem afterward.
Also, the addins were working fine when compiled under .NET 1.1. I only see
the problem after upgrading to .NET 2.0.
Any ideas? Why does it work with Outlook and PowerPoint but not Word or
Excel? Why with .NET 1.1 but not .NET 2.0?
Thank you,
Bret
I have a set of IDTExtensibility2 based add-ins developed with .NET 2.0. I
have addins for Word, Outlook, PowerPoint, and Excel. They all use the same
IDTExtensibility2 implementation. The addins load fine in Outlook and
PowerPoint, but not in Word or Excel.
I set the registry value
HKLM\Software\Microsoft\.NETFramework\ExposeExceptionsInCOM=2 to discover the
following error (sorry, it's a French OS):
System.IO.FileNotFoundException: Le fichier ou l'assembly nommé
SystranOfficePlugins ou l'une de ses dépendances, est introuvable. Nom du
fichier : "SystranOfficePlugins"
=== Pre-bind state information ===
LOG: DisplayName = SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28 (Fully-specified)
LOG: Appbase = C:\Program Files\Microsoft Office\OFFICE11\
LOG: InitialPrivatePath = NULL
Calling assembly : (Unkown).
===
LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found
LOG: Host configuration file not found
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: SystranOfficePlugins, Version=6.1.0.0,
Culture=neutral, PublicKeyToken=64fcb621891dba28
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins/SystranOfficePlugins.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/SystranOfficePlugins/SystranOfficePlugins.EXE.
Here are the relevant registry keys for my installation:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\Systran6.OfficePluginConnect]
"LoadBehavior"=dword:00000003
[HKEY_CLASSES_ROOT\Systran6.OfficePluginConnect]
@="Systran6.OfficePluginConnect"
[HKEY_CLASSES_ROOT\Systran6.OfficePluginConnect\CLSID]
@="{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}]
@="Systran6.OfficePluginConnect"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\Implemented Categories]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\Implemented Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\InprocServer32]
@="mscoree.dll"
"ThreadingModel"="Both"
"Class"="Systran6.OfficePluginConnect"
"Assembly"="SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///C:/Program Files/SYSTRAN/601/SystranOfficePlugins.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\InprocServer32\6.1.0.0]
"Class"="Systran6.OfficePluginConnect"
"Assembly"="SystranOfficePlugins, Version=6.1.0.0, Culture=neutral,
PublicKeyToken=d4fcb621891dba28"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///C:/Program Files/SYSTRAN/601/SystranOfficePlugins.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{6F94FF6D-002A-43D8-A3E7-06C19B231ACA}\ProgId]
@="Systran6.OfficePluginConnect"
I tried to put the dll in the GAC, using the following command line:
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42gacutil.exe" /i "\Program Files\SYSTRAN\601\SystranOfficePlugins.dll"
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
But I have the same problem afterward.
Also, the addins were working fine when compiled under .NET 1.1. I only see
the problem after upgrading to .NET 2.0.
Any ideas? Why does it work with Outlook and PowerPoint but not Word or
Excel? Why with .NET 1.1 but not .NET 2.0?
Thank you,
Bret