Assembly not found for .NET Word/Excel addin

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:
gacutil.exe" /i "\Program Files\SYSTRAN\601\SystranOfficePlugins.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
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
 
S

ssissa

I ran FUSLOGVW.exe and found the following log entry that occurs just before
the error reported in the original previous post:

*** Assembly Binder Log Entry (05/09/2007 @ 23:07:58) ***

The operation failed.
Bind result: hr = 0x80131107. No description available.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable C:\Program Files\Microsoft
Office\OFFICE11\WINWORD.EXE
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:/Program
Files/SYSTRAN/601/SystranOfficePlugins.dll
LOG: Appbase = C:\Program Files\Microsoft Office\OFFICE11\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Program
Files/SYSTRAN/601/SystranOfficePlugins.dll.
LOG: Assembly download was successful. Attempting setup of file: C:\Program
Files\SYSTRAN\601\SystranOfficePlugins.dll
LOG: Entering run-from-source setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131107).
ERR: Failed to complete setup of assembly (hr = 0x80131107). Probing
terminated.
 
C

Cindy M.

Hi =?Utf-8?B?c3Npc3NhQG5ld3Nncm91cHMubm9zcGFt?=,
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.
See if this KB article applies and if the update remedies the problem

http://support.microsoft.com/kb/907417/

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
S

ssissa

Thanks for the link. I tried to install the Update on my test machine, but
the installer failed with the following error:
Erreur 1327. Lecteur G:\ non valide.
 
P

Patrick Schmid [MVP]

Give this KB a try: http://support.microsoft.com/kb/908002

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
S

ssissa

As I understand, KB908002 provides three packages for distribution on client
machines:
lockbackRegKey.msi
office2003-kb907417sfxcab-ENU.exe
extensibilityMSM.msi

I still have the same problem installing the kb907417 redistributable on my
test machine. Does anyone have an idea why this package will not install?

I found the following description of lockbackRegKey.msi at
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=174211&SiteID=1:
just sets a single reg key, which is sufficient to fix the CLR issue in
Office10 and older, but will have undesirable side effects on Office2003 (it
will break your customers' VSTO v1 solutions) if applied without the .exe
patch from above (from KB907417).

On my test machine, with Office 2003, installing lockbackRegKey.msi fixes
the problem of my Word and Excel addins (still without kb907417 installed).
However, from the above description it does seem to be a good idea to
distribute this alone.

I understand that extensibilityMSM.msi installs extensibility.dll, which I
am not using.

So, I am still stuck on kb907417, Cindy's original suggestion, which will
not install on my test machine with the following error:
Erreur 1327. Lecteur G:\ non valide

Thanks,
Bret
 
C

Cindy M.

Hi =?Utf-8?B?c3Npc3NhQG5ld3Nncm91cHMubm9zcGFt?=,
So, I am still stuck on kb907417, Cindy's original suggestion, which will
not install on my test machine with the following error:
Erreur 1327. Lecteur G:\ non valide
You're using French software? Possibly the patch is language-specific (I
don't know)?

What's drive G on your machine?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
S

ssissa

Hi,

Actually, it is possible to download different language versions of the
patch, but I get the same error for both the English and French versions.

Perhaps I will explore more about drive G: on that platform, but I have
switched the test machine to a different platform for the moment.

I was able to install the patch on a second test platform and it indeed
solves the problem. Still, on this platform I was prompted to insert my
Office 2003 CD in order to complete installation of the patch.

I am presently very concerned about the reliability of distributing this
patch with our product's installer. Of two platforms I tested, the patch
doesn't install at all on one, and requires an Office CD on the other.
Neither behaviors will be acceptable for distribution of our product.

Thanks,
Bret
 
W

Wei Lu [MSFT]

Hello Bret,

Have you explored any thing in your Drive G?



Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

ssissa

There was no G:\ drive on the machine, and I don't know if or what G:\ was
mapped to when the OS/Office was installed on the machine. In any case, I
mapped G:\ to a network location and tried installing again. I got a
different error message: The update cannot be applied.
 
W

Wei Lu [MSFT]

Hello Bret,

I would like to suggest you check the following register entry:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell
Folders

Change all the network share to my documents.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

ssissa

There does not seem to be any network shares under the registry keys you
mention:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders]
"AppData"="C:\\Documents and Settings\\SystranTest\\Application Data"
"Cookies"="C:\\Documents and Settings\\SystranTest\\Cookies"
"Desktop"="C:\\Documents and Settings\\SystranTest\\Bureau"
"Favorites"="C:\\Documents and Settings\\SystranTest\\Favoris"
"NetHood"="C:\\Documents and Settings\\SystranTest\\Voisinage rseau"
"Personal"="C:\\Documents and Settings\\SystranTest\\Mes documents"
"PrintHood"="C:\\Documents and Settings\\SystranTest\\Voisinage d'impression"
"Recent"="C:\\Documents and Settings\\SystranTest\\Recent"
"SendTo"="C:\\Documents and Settings\\SystranTest\\SendTo"
"Start Menu"="C:\\Documents and Settings\\SystranTest\\Menu Dmarrer"
"Templates"="C:\\Documents and Settings\\SystranTest\\Modles"
"Programs"="C:\\Documents and Settings\\SystranTest\\Menu Dmarrer\\Programmes"
"Startup"="C:\\Documents and Settings\\SystranTest\\Menu
Dmarrer\\Programmes\\Dmarrage"
"Local Settings"="C:\\Documents and Settings\\SystranTest\\Local Settings"
"Local AppData"="C:\\Documents and Settings\\SystranTest\\Local
Settings\\Application Data"
"Cache"="C:\\Documents and Settings\\SystranTest\\Local Settings\\Temporary
Internet Files"
"History"="C:\\Documents and Settings\\SystranTest\\Local
Settings\\Historique"
"My Pictures"="C:\\Documents and Settings\\SystranTest\\Mes documents\\Mes
images"
"Fonts"="C:\\WINDOWS\\Fonts"
"My Music"="C:\\Documents and Settings\\SystranTest\\Mes documents\\Ma
musique"
"CD Burning"="C:\\Documents and Settings\\SystranTest\\Local
Settings\\Application Data\\Microsoft\\CD Burning"
"My Video"=""
"Administrative Tools"=""

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders]
"AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,6c,00,69,00,63,00,61,00,74,00,69,\
00,6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,00,00
"Desktop"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,42,00,75,00,72,00,65,00,61,00,75,00,00,00
"Favorites"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,73,00,00,00
"NetHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,56,00,6f,00,69,00,73,00,69,00,6e,00,61,00,67,00,65,\
00,20,00,72,00,e9,00,73,00,65,00,61,00,75,00,00,00
"Personal"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4d,00,65,00,73,00,20,00,64,00,6f,00,63,00,75,00,6d,\
00,65,00,6e,00,74,00,73,00,00,00
"PrintHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,56,00,6f,00,69,00,73,00,69,00,6e,00,61,00,67,00,65,\
00,20,00,64,00,27,00,69,00,6d,00,70,00,72,00,65,00,73,00,73,00,69,00,6f,00,\
6e,00,00,00
"Programs"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4d,00,65,00,6e,00,75,00,20,00,44,00,e9,00,6d,00,61,\
00,72,00,72,00,65,00,72,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,\
6d,00,65,00,73,00,00,00
"Recent"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
00,45,00,25,00,5c,00,52,00,65,00,63,00,65,00,6e,00,74,00,00,00
"SendTo"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
00,45,00,25,00,5c,00,53,00,65,00,6e,00,64,00,54,00,6f,00,00,00
"Start Menu"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
00,4c,00,45,00,25,00,5c,00,4d,00,65,00,6e,00,75,00,20,00,44,00,e9,00,6d,00,\
61,00,72,00,72,00,65,00,72,00,00,00
"Startup"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4d,00,65,00,6e,00,75,00,20,00,44,00,e9,00,6d,00,61,\
00,72,00,72,00,65,00,72,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,\
6d,00,65,00,73,00,5c,00,44,00,e9,00,6d,00,61,00,72,00,72,00,61,00,67,00,65,\
00,00,00
"Templates"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4d,00,6f,00,64,00,e8,00,6c,00,65,00,73,00,00,00
"My
Pictures"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
00,4c,00,45,00,25,00,5c,00,4d,00,65,00,73,00,20,00,64,00,6f,00,63,00,75,00,\
6d,00,65,00,6e,00,74,00,73,00,5c,00,4d,00,65,00,73,00,20,00,69,00,6d,00,61,\
00,67,00,65,00,73,00,00,00
"Local
Settings"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,\
49,00,4c,00,45,00,25,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,20,00,53,00,65,\
00,74,00,74,00,69,00,6e,00,67,00,73,00,00,00
"Local AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,\
49,00,4c,00,45,00,25,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,20,00,53,00,65,\
00,74,00,74,00,69,00,6e,00,67,00,73,00,5c,00,41,00,70,00,70,00,6c,00,69,00,\
63,00,61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,00,00
"Cache"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
00,45,00,25,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,20,00,53,00,65,00,74,00,\
74,00,69,00,6e,00,67,00,73,00,5c,00,54,00,65,00,6d,00,70,00,6f,00,72,00,61,\
00,72,00,79,00,20,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,20,00,\
46,00,69,00,6c,00,65,00,73,00,00,00
"Cookies"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,43,00,6f,00,6f,00,6b,00,69,00,65,00,73,00,00,00
"History"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
4c,00,45,00,25,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,20,00,53,00,65,00,74,\
00,74,00,69,00,6e,00,67,00,73,00,5c,00,48,00,69,00,73,00,74,00,6f,00,72,00,\
69,00,71,00,75,00,65,00,00,00

All user shell folders point to %USERPROFILE%=C:\Documents and
Settings\SystranTest

Thanks,
Bret
 
W

Wei Lu [MSFT]

Hello Bret,

I would like to get the following information from you.

1. Your OS version.

2. Your Offiice Application version and whether you have applied the latest
service pack or not.

3. What Update you have applied in your machine.

4. What's .NET Framework you installed in your machine.

Please email me these information. To get my real email address, please
remove the ONLINE in my display email address.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Wei Lu [MSFT]

Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top