Addin stops working after restart/logoff

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

Addin stops working after restart/logoff
 
mac chhatriwala




Posts: 4
Joined: 2007-04-18
Hi,

I am using addin express .net to build a com addin for word xp/2003 in VS 2005.

a- Run the setup created by addin express on target machine
b- it works fine
c- restart / logoff the machine
d- addin stops working

Note:
1- Users connect to a domain server and profiles are stored on the server.
2- I checked in the registry and the entries for the addin disappear after restart/logoff.

Please could you revert asap.

thanks
Posted 18 Apr, 2007 05:16:29 Top
Sergey Grischenko


Add-in Express team


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

What version of Add-in Express do you use?
Do you register the add-in for the current user only (RegisterForAllUsers = false)?


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 18 Apr, 2007 10:48:31 Top
mac chhatriwala




Posts: 4
Joined: 2007-04-18
Hi,

Version = Add-in Express?Â?Ô?? 2007 for Microsoft??? .net
File version for adxloader.dll = 3.4.1868.0

(RegisterForAllUsers = true)

I think, on login the domain server (active directory) populates the registry settings for HKEY_CURRENT_USER on the machine - and hence, the keys created by addin express on installation are wiped out.

thanks
Posted 18 Apr, 2007 11:23:59 Top
Sergey Grischenko


Add-in Express team


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

Yes, I agree with you. Please try to install the add-in for the current user only.
Posted 19 Apr, 2007 09:09:17 Top
mac chhatriwala




Posts: 4
Joined: 2007-04-18
Hi Sergey,

I tried using (RegisterForAllUsers = true).
But it is not working.

The addin works absolutely fine when I install it - till I logoff or restart the machine.

Any thoughts please.

This is very urgent now.

thanks
Posted 19 Apr, 2007 10:29:19 Top
mac chhatriwala




Posts: 4
Joined: 2007-04-18
Hi,

Log file:

Add-in Express Loader Log File: 04/19/2007 15:18:40

Startup directory: C:\Program Files\Default Company Name\MyAddin2Setup\
------------------
15:18:40 540 Start.
15:18:40 540 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{456B8BD8-A2AD-4644-9ADA-8BBD72FDD9B4}'
15:18:40 540 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{456B8BD8-A2AD-4644-9ADA-8BBD72FDD9B4}' is closed.
15:18:40 540 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
15:18:40 540 Success.
15:18:40 540 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
15:18:40 540 Success.
15:18:40 540 Creating a new instance of the add-in loader.
15:18:40 540 Success.
15:18:40 540 Loading the configuration from the system registry.
15:18:40 540 The configuration has been loaded successfully.
15:18:40 540 Runtime version: v2.0.50727.
15:18:40 540 Assembly name: MyAddin2, PublicKeyToken=8F2C4A6491E954ED.
15:18:40 540 Class name: MyAddin2.AddinModule.
15:18:40 540 Attempting to create a new instance of the managed add-in class: CLR - v1.1.4322
15:18:40 540 Loading CLR: v1.1.4322.
15:18:40 540 The CLR (v1.1.4322) has been initialized successfully.
15:18:40 540 Creating a new domain setup.
15:18:40 540 Success.
15:18:40 540 Getting the add-in directory.
15:18:40 540 Success. The directory is 'C:\Program Files\Default Company Name\MyAddin2Setup\'
15:18:40 540 The 'shadow copy' is enabled.
15:18:40 540 Creating a new application domain.
15:18:40 540 Success.
15:18:40 540 The loader failed creating an instance of the managed add-in class. HResult = -2146234105.
15:18:40 540 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
15:18:40 540 The managed add-in class has been created successfully.
15:18:40 540 The loader failed creating an instance of the managed add-in class. HResult = -2146234105.

thanks
Posted 19 Apr, 2007 10:49:47 Top
Sergey Grischenko


Add-in Express team


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

Please include the 'Shared add-in support update for .NET v2.0' prerequisite to the setup project and rebuild it. Then please use the setup.exe file to install the prerequisite and add-in on the PC.
Posted 20 Apr, 2007 09:34:25 Top