Runtime error loading add-in in Outlook 2007

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

Runtime error loading add-in in Outlook 2007
 
George Roberts




Posts: 3
Joined: 2007-12-15
One of our staff members is trying to use our new toolbar we're working on for Outlook. He's running Outlook 2007 on Windows Vista. When he starts up Outlook, the add-in is not running and when he goes into the Trust Center it says that there was a runtime error. However, I can't figure out what could be causing this. I've installed this on both my development machine (Vista + Outlook 2007) and another desktop (Vista + Outlook 2007) with no problems.

Here's his adxloader.log:

Add-in Express Loader Log File: 12/15/2007 13:39:13

Startup directory: C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\
------------------
13:39:13 432 Starting the add-in registration process.
13:39:13 432 Loading the latest CLR version.
13:39:13 432 The CLR v2.0.50727 has been initialized successfully.
13:39:13 432 Creating a new domain setup.
13:39:13 432 Success.
13:39:13 432 Getting the add-in directory.
13:39:13 432 Success. The directory is 'C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\'
13:39:13 432 The 'shadow copy' is disabled.
13:39:13 432 Creating a new application domain.
13:39:13 432 Success.
13:39:13 432 Getting the base directory for the domain.
13:39:13 432 Success. The directory is 'C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\'.
13:39:13 432 Seaching for the Add-in Express core library.
13:39:13 432 Success. The 'AddinExpress.MSO.2005.dll' file has been found.
13:39:13 432 Creating an instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
13:39:13 432 Assembly identity is 'AddinExpress.MSO.2005'.
13:39:13 432 Success.
13:39:13 432 Unwrapping the instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
13:39:13 432 Success.
13:39:13 432 Creating an instance of the XML parser class.
13:39:13 432 Success.
13:39:13 432 Loading the manifest file (C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\adxloader.dll.manifest).
13:39:13 432 Success.
13:39:13 432 Getting the root element of the manifest (C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\adxloader.dll.manifest).
13:39:13 432 Success.
13:39:13 432 Getting the 'assemblyIdentity' element of the manifest (C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\adxloader.dll.manifest).
13:39:13 432 Success.
13:39:13 432 Seraching fo the 'name' attribute of the 'assemblyIdentity' element.
13:39:13 432 Success. The name is 'ProtectedMail, PublicKeyToken=7f9834c7f8364ffa'.
13:39:13 432 Calling the managed procedure to register the 'ProtectedMail, PublicKeyToken=7f9834c7f8364ffa' assembly.
13:39:14 1196 Connecting to the application domain of the Add-in Express loader.
13:39:14 1196 Success.
13:39:14 1196 Loading the 'ProtectedMail, PublicKeyToken=7f9834c7f8364ffa' assembly.
13:39:14 1196 Success.
13:39:14 1196 Registering the 'ProtectedMail, PublicKeyToken=7f9834c7f8364ffa' assembly (user).
13:39:14 1196 Registering the 'ProtectedMail.AddinModule' type.
13:39:14 1196 Searching for static methods that contain the 'ComRegisterFunction' attribute.
13:39:14 1196 Calling the 'AddinRegister' static method.
13:39:15 1196 The 'ProtectedMail.AddinModule' type has been registered successfully.
13:39:15 1196 The ' ProtectedMail, PublicKeyToken=7f9834c7f8364ffa' assembly has been registered successfully.
13:39:15 1196 The managed registration process is complete with HRESULT = 0.
13:39:15 432 The add-in registration process is complete with HRESULT = 0.

Any thoughts?
Posted 15 Dec, 2007 21:58:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi George.

Was the add-in installed for a non-admin user? If so, please ask the user to turn the UAC on.
Posted 17 Dec, 2007 10:51:27 Top
George Roberts




Posts: 3
Joined: 2007-12-15
No, he's an admin user and UAC is turned on.
Posted 17 Dec, 2007 12:44:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
George, probably the add-in was blocked by Outlook. Please check it in the Disabled Items dialog. Also please try to enable the add-in in the COM Add-in dialog and send me the adxloader.log file.
Posted 17 Dec, 2007 13:43:43 Top
George Roberts




Posts: 3
Joined: 2007-12-15
Ok, fixed that one. He had Outlook set to "Run as Administrator" in the properties for the shortcut. As soon as I unchecked that the add-in worked.

However, a new user:

Windows XP Pro with Outlook 2003. Gets a dialog during installation with the message "the DllRegister function failed during execution"

Here's the adxloader.log:

Add-in Express Loader Log File: 12/17/2007 19:49:49

Startup directory: C:\Program Files\ProtectedMail\ProtectedMail Outlook Add-in\
------------------
19:49:49 372 Starting the add-in registration process.
19:49:49 372 Loading the latest CLR version.
19:49:49 372 The CLR failed to be initialized. HRESULT = -2146232576.
19:49:49 372 The add-in registration process is complete with HRESULT = -2146232576.
Posted 18 Dec, 2007 05:16:04 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi George.

Is the .NET Framework installed properly on the PC? If so, what is the version?

Also please check if all the latest update was installed on the problematic PC.
Posted 18 Dec, 2007 10:22:58 Top