Add-in fails to register in Office XP

Add-in Express™ Support Service
That's what is more important than anything else

Add-in fails to register in Office XP
 
Muller Stephan




Posts: 50
Joined: 2010-03-11
Hi guys,
I have some trouble with an Add-In not registering.

It works fine on Win7 + Office 2007 as well as on Win XP + Office 2000, but on Win 2000 + Office XP it fails.

It's Win2k 5.00.2195 and Word 2002 10.2627.2625 and PPT 2002 10.2623.2625

Furthermore VS 2008 9.0.21022.8 and ADX 6.0.3043.

It fails both as guest & adminstrator, the Add-In is set to RegisterForAllUsers false.

Here is the log:
Add-in Express Registrator Log File: 09/01/2010 20:37:34

Installation directory: C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\
Registrator version: 6.0.3043.0
-------------------------------
20:37:34 Starting the add-in registration process.
20:37:34 Loading mscoree.dll
20:37:34 Success.
20:37:34 .NET Framework installation directory:
20:37:34 The latest version of .NET Framework: 'v2.0.50727'
20:37:34 Loading CLR: v2.0.50727.
20:37:34 The CLR v2.0.50727 has been initialized successfully.
20:37:34 Creating a new domain setup.
20:37:34 Success.
20:37:34 Getting the add-in directory.
20:37:34 Success. The directory is 'C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\'
20:37:34 The configuration file is '(null)'
20:37:34 The 'shadow copy' is disabled.
20:37:34 Creating a new application domain.
20:37:34 Success.
20:37:34 Getting the base directory for the domain.
20:37:34 Success. The directory is 'C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\'.
20:37:34 Searching for the Add-in Express core library.
20:37:34 Success. The 'AddinExpress.MSO.2005.dll' file is found.
20:37:34 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
20:37:34 Assembly identity is 'AddinExpress.MSO.2005'.
20:37:35 Success.
20:37:35 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
20:37:35 Success.
20:37:35 Calling the managed registration procedure.
20:37:35 Managed Error:
Date and Time: 01.09.2010 20:37:35
Machine Name: MS-3C1B883FA75E
IP Address: 192.168.0.105
Current User: MS-3C1B883FA75E\Administrator

Application Domain: C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\
Assembly Codebase: file:///C:/Documents and Settings/Administrator/Application Data/DefaultCompany/Office Plugin/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 01.05.2008 02:06:50

Exception Source: AddinExpress.MSO.2005
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Target Site: RegisterManagedType

---- Stack Trace ----
AddinExpress.Projects.Common.Utilities.RegisterManagedType(type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
AddinExpress.MSO.2005.DLL: N 0083 (0x53) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.MSO.2005.DLL: N 0157 (0x9D) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.MSO.2005.DLL: N 0038 (0x26) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.MSO.2005.DLL: N 0058 (0x3A) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.DLL: N 0437 (0x1B5) IL



20:37:35 The add-in registration process is completed with HRESULT = -2147467259.
Posted 01 Sep, 2010 13:56:03 Top
Eugene Astafiev


Guest


Hi Stephan,

I have noticed that you use an old build of Add-in Express. Please uninstall the current version of Add-in Express and install a new one. You can download it from http://www.add-in-express.com/downloads/adxnet.php. Also please don't forget to replace the adxloader.dll (and its 64 bits version - adxloader64.dll) in the Loader folder of your project with a new one (look for the Redistributables folder in the Add-in Express installation folder).

Please let me know whether it helps.
Posted 02 Sep, 2010 06:32:10 Top
Muller Stephan




Posts: 50
Joined: 2010-03-11
Hi Eugene,
thanks - sorry, I did not think the version would matter for Office XP and Win2k.

I replace ADX with the current version. Now, according to the log file, the add-in is loaded correctly.

However in PowerPoint I get the message
"The procedure entry point IsWow64Process could not be located in the dynamic link library Kernel32.dll"
when starting PowerPoint. It then starts correctly, but doesn't show any entries in Tools => AddIns.

In Word the Add-In just doesn't show at all. Also nothing in Tools => AddIns.

Is it possible the reason for the error is that I am running a virtual machine to test the dad-in? I have a x64 processor, and maybe that somehow confuses the Add-In.

However if that is the reason, I wonder why it works with WinXP and Office 2k.



Thanks for your answer in advance
Stephan
Posted 03 Sep, 2010 01:47:47 Top
Muller Stephan




Posts: 50
Joined: 2010-03-11
Update: The add-in still works fine on 7 + 2007 x64 (actual machine) and XP + Office 2000 (virtual machine).

Furthermore, here is the load log from 2000 + O XP

Add-in Express Registrator Log File: 09/03/2010 08:33:40

Installation directory: C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\
Registrator version: 6.1.3044.0
-------------------------------
08:33:40 Starting the add-in registration process.
08:33:40 Loading mscoree.dll
08:33:40 Success.
08:33:40 .NET Framework installation directory:
08:33:40 The latest version of .NET Framework: 'v2.0.50727'
08:33:40 Loading CLR: v2.0.50727.
08:33:40 The CLR v2.0.50727 has been initialized successfully.
08:33:40 Creating a new domain setup.
08:33:40 Success.
08:33:40 Getting the add-in directory.
08:33:40 Success. The directory is 'C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\'
08:33:40 The configuration file is '(null)'
08:33:40 The 'shadow copy' is disabled.
08:33:40 Creating a new application domain.
08:33:41 Success.
08:33:41 Getting the base directory for the domain.
08:33:41 Success. The directory is 'C:\Documents and Settings\Administrator\Application Data\DefaultCompany\Office Plugin\'.
08:33:41 Searching for the Add-in Express core library.
08:33:41 Success. The 'AddinExpress.MSO.2005.dll' file is found.
08:33:41 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
08:33:41 Assembly identity is 'AddinExpress.MSO.2005'.
08:33:41 Success.
08:33:41 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
08:33:42 Success.
08:33:42 Calling the managed registration procedure.
08:33:43 Success.
08:33:43 The add-in registration process is completed with HRESULT = 0.
Posted 03 Sep, 2010 01:59:37 Top
Eugene Astafiev


Guest


Hi Stephan,

The log file looks good. Please make sure that you installed the latest service packs for OS and Office. Could you please tell me the SP (service packs) number of OS and Office?

Also please try replacing the adxloader in the Loader folder of your project with http://www.add-in-express.com/files/projects_pub/wow64fix/adxloader_6_1_3044_1.zip one.
Posted 03 Sep, 2010 03:37:58 Top
Muller Stephan




Posts: 50
Joined: 2010-03-11
Hi Eugene,
unfortunately it also doesn't work with the new loader. Also not after installing Office SP3. It's already 2000 with SP4.

I now have exactly the same issue as http://www.add-in-express.com/forum/read.php?PAGEN_1=2&FID=5&TID=7879#nav_start


Kind Regards and Thanks
Stephan
Posted 05 Sep, 2010 14:05:23 Top
Eugene Astafiev


Guest


Hi Stephan,

I have just sent an e-mail to you with a link for download. Please check out your Inbox.
Posted 06 Sep, 2010 06:34:30 Top