"DllRegister" function failed during execution

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

"DllRegister" function failed during execution
 
suman bathula


Guest


hi

We created outlook add-in and while installing the setup file we are getting following error.
"DllRegister" function failed during execution(HRESULT =- 2146234105).

i tested on many systems but failed to reproduce this. but when i install setup on one particular system i am always getting this error. what could be the reason?


below is the log.


Add-in Express Loader Log File: 02/22/2008 14:52:21

Startup directory: Loader version: 4.0.1902
C:\Program Files\ABC\XYZ\
------------------
14:52:21 380 Starting the add-in registration process.
14:52:21 380 Loading the latest CLR version.
14:52:21 380 The CLR v1.1.4322 has been initialized successfully.
14:52:21 380 Creating a new domain setup.
14:52:21 380 Success.
14:52:21 380 Getting the add-in directory.
14:52:21 380 Success. The directory is 'C:\Program Files\ABC\XYZ\'
14:52:21 380 The 'shadow copy' is disabled.
14:52:21 380 Creating a new application domain.
14:52:21 380 Success.
14:52:21 380 Getting the base directory for the domain.
14:52:21 380 Success. The directory is 'C:\Program Files\ABC\XYZ\'.
14:52:21 380 Seaching for the Add-in Express core library.
14:52:21 380 Success. The 'AddinExpress.MSO.2005.dll' file has been found.
14:52:21 380 Creating an instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
14:52:21 380 Assembly identity is 'AddinExpress.MSO.2005'.
14:52:22 380 The add-in registration process is complete with HRESULT = -2146234105.


any help would be highly appreciated.

thanks
suman
Posted 25 Feb, 2008 05:56:35 Top
suman bathula


Guest


any body there?

please guide me.

thanks
suman
Posted 26 Feb, 2008 00:03:51 Top
suman bathula


Guest


hello

We have an outlook add-in which was created on Visual studio 2003 and add-in-express 2003 dlls, ADXLoader (3.6.1879.0).
Now the same is upgraded to Visual studio 2005, add-in-express 2008 dlls, ADXLoader (4.0).

we are not getting any errors when we clean install the new add-in setup (which i built on C# 2.0) .

we are getting mentioned error when we are upgrading the setup.

steps:
1) installed add-in setup (built on VS 2003, add-in-express 2003)
2) installing new upgraded add-in setup with out uninstalling the previous one.
this time we are getting an error.

what shall i do?
i dont know what to do now.

waiting for one's reply

thanks
suman
Posted 26 Feb, 2008 07:22:24 Top
suman bathula


Guest


this is the new log file got when trying to install add-in upon the existing one.

log file :

Add-in Express Loader Log File: 02/26/2008 18:24:24

Startup directory: Loader version: 4.0.1902 C:\Program Files\ABC\XYZ\
------------------
18:24:24 376 Starting the add-in registration process.
18:24:24 376 Loading the latest CLR version.
18:24:24 376 The CLR v2.0.50727 has been initialized successfully.
18:24:24 376 Creating a new domain setup.
18:24:24 376 Success.
18:24:24 376 Getting the add-in directory.
18:24:24 376 Success. The directory is 'C:\Program Files\ABC\XYZ\'
18:24:24 376 The 'shadow copy' is disabled.
18:24:24 376 Creating a new application domain.
18:24:24 376 Success.
18:24:24 376 Getting the base directory for the domain.
18:24:24 376 Success. The directory is 'C:\Program Files\ABC\XYZ\' .
18:24:24 376 Seaching for the Add-in Express core library.
18:24:24 376 Success. The 'AddinExpress.MSO.2005.DLL' file has been found.
18:24:24 376 Creating an instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
18:24:24 376 Assembly identity is 'AddinExpress.MSO.2005'.
18:24:24 376 Success.
18:24:24 376 Unwrapping the instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
18:24:25 376 Success.
18:24:25 376 Creating an instance of the XML parser class.
18:24:25 376 Success.
18:24:25 376 Loading the manifest file (C:\Program Files\ABC\XYZ\adxloader.dll.manifest).
18:24:25 376 Success.
18:24:25 376 Getting the root element of the manifest (C:\Program Files\ABC\XYZ\adxloader.dll.manifest).
18:24:25 376 Success.
18:24:25 376 Getting the 'assemblyIdentity' element of the manifest (C:\Program Files\ABC\XYZ\adxloader.dll.manifest).
18:24:25 376 Success.
18:24:25 376 Seraching fo the 'name' attribute of the 'assemblyIdentity' element.
18:24:25 376 Success. The name is 'ABCXYZ'.
18:24:25 376 Calling the managed procedure to register the 'ABCXYZ' assembly.
18:24:25 1456 Connecting to the application domain of the Add-in Express loader.
18:24:25 1456 Success.
18:24:25 1456 Loading the 'ABCXYZ' assembly.
18:24:25 1456 Success.
18:24:25 1456 Registering the 'ABCXYZ' assembly (administrator).
18:24:25 1456 Error: The Add-in Express Loader can't resolve the 'AddinExpress.OL.2003, Version=3.6.917.2003, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8' assembly. Please check if the assembly exists in the application directory or in the GAC.
18:24:25 1456 Error: Could not load file or assembly 'AddinExpress.OL.2003, Version=3.6.917.2003, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8' or one of its dependencies. The system cannot find the file specified.
18:24:25 1456 The managed registration process is complete with HRESULT = 2.
18:24:25 376 The add-in registration process is complete with HRESULT = 2.


why is it looking for old addinexpress dlls when i am trying to upgrade other wise it is working properly.

please respond any one.

thanks
suman
Posted 26 Feb, 2008 09:00:12 Top
Sergey Grischenko


Add-in Express team


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

First of all you should uninstall previous version of the add-in before you install a new one.

Did you build the add-in with the 'AddinExpress.OL.2005' assembly?
Posted 26 Feb, 2008 10:46:53 Top
suman bathula


Guest


Hi Sergey

yes, we build the add-in with the 'AddinExpress.OL.2005' assembly.

I set the property RemovePreviosVersion to True in the setup project which will uninstall the previous one.

As per the property it is uninstalling the previous one and installing the new one. i am getting an error in the middle of the new setup installation. I am surprised why it is checking for the older version when it has uninstalled the prev one and started new one.

thanks
suman
Posted 26 Feb, 2008 11:33:16 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Suman, based on the log information the manifest of the add-in assembly requires the 'AddinExpress.OL.2003 assembly. Please check if you copy the 'AddinExpress.OL.2003 assembly locally in the add-in project directory.
Posted 26 Feb, 2008 11:59:42 Top
suman bathula


Guest


Hi sergey

thanks for the reply.

I added old addinexpress dlls and now its working good , both at clean install and while upgrading.

but is this the only solution for upgrading any add-in?

i am still confused why it is looking for old dll's though i provided the latest one's.

infact the new setup will be installed only after uninstalling the old setup. so in any case it should not look for old dlls.

issue is reproducing only in the following scenario.

installed old add-in setup(VS 2003, addinexpress 2003, adxloader 3.6).
i have not uninstalled the old add-in setup.
now trying to install new add-in setup(VS 2005, addinexpress 2005, adxloader 4.0).

there comes the error.


issue is not-reproducing in the following scenario.

installed old add-in setup(VS 2003, addinexpress 2003, adxloader 3.6).
i have uninstalled the old add-in setup manually from control panel.
now trying to install new add-in setup(VS 2005, addinexpress 2005, adxloader 4.0).

and error is not fired, setup completes with no error.

so what is the difference in upgrading the old one to new one and clean install?

i hope you got my point.

thanks
suman
Posted 27 Feb, 2008 03:18:43 Top
Sergey Grischenko


Add-in Express team


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

It is not possible just to upgrade a COM add-in (overwrite it in the target folder). You necessarily should unregister it before you install a new version.
Posted 27 Feb, 2008 08:38:30 Top