"operation failed" when immediately reopen the outlook after close it

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

"operation failed" when immediately reopen the outlook after close it
 
Mimi Yang




Posts: 120
Joined: 2010-02-01
I have the same problem as
http://www.add-in-express.com/forum/read.php?FID=5&TID=5031&MID=24979#message24979

1. What Outlook version do you use? Is it up to date?
Outlook 2003, up to date.

2. What version and build number of Add-in Express do you use?
Add-in Express 2008 for .Net v4.3.1910

3. What OS do you use? Is it up to date?
XP, up to date. It may happen on other OS, but I did not check, as I have to limit the memory to slow down the shutdown process to reproduce it.
4. Could you show me the adxloader.log file?

15:04:23 1128 Start.
15:04:23 1128 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{3F2D89C8-40C5-45CE-B660-310B3292B311}'
15:04:23 1128 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{3F2D89C8-40C5-45CE-B660-310B3292B311}' is closed.
15:04:23 1128 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
15:04:23 1128 Success.
15:04:23 1128 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
15:04:23 1128 Success.
15:04:23 1128 Creating a new instance of the add-in loader.
15:04:23 1128 Success.
15:04:23 1128 Loading the configuration from the system registry.
15:04:23 1128 Getting the lates CLR version.
15:04:23 1128 The latest CLR version is 'v2.0.50727'.
15:04:23 1128 The configuration has been loaded successfully.
15:04:23 1128 Runtime version: v2.0.50727.
15:04:23 1128 Assembly name: PAO, PublicKeyToken=3CA5612D52C4798F.
15:04:23 1128 Class name: CounterPath.PAOLoader.AddinModule.
15:04:23 1128 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
15:04:23 1128 Loading CLR: v2.0.50727.
15:04:23 1128 The CLR v2.0.50727 has been initialized successfully.
15:04:23 1128 Creating a new domain setup.
15:04:23 1128 Success.
15:04:23 1128 Getting the add-in directory.
15:04:23 1128 Success. The directory is 'C:\Program Files\CounterPath\Bria Add-In\'
15:04:23 1128 The configuration file is 'C:\Program Files\CounterPath\Bria Add-In\app.config'
15:04:23 1128 The 'shadow copy' is enabled.
15:04:23 1128 Creating a new application domain.
15:04:23 1128 Success.
15:04:29 1128 Unwrapping the managed class.
15:04:29 1128 Success.
15:04:29 1128 Querying the add-in extensibility.
15:04:29 1128 Querying the custom task panes.
15:04:29 1128 Querying the ribbon extensibility.
15:04:29 1128 Success.
15:04:29 1128 Querying the form regions.
15:04:29 1128 Success.
15:04:29 1128 The managed add-in class has been created successfully.

5. Could you take a screenshot of the error message box?
just a plain dialog with one OK button, says "The Operation Failed".

So basically, if I try to restart the Outlook while the add-in is staill shut down, ( I can see it from the debug view), I will get this dialog.

This may not related to add-in express at all, but just wondering is there a way to avoid it?

Thanks a lot.
Posted 26 Feb, 2010 17:30:18 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Mimi,

Please try the latest build of version 2008 at http://www.add-in-express.com/downloads/adxnet-old.php. You need to unregister your add-on, delete al files from Bin\Debug and Bin\Release, replace Loader\adxloader.dll in your project with {Add-in Express}\Redistributables\adxloader.dll, build your add-in and register it.


Andrei Smolin
Add-in Express Team Leader
Posted 01 Mar, 2010 07:03:57 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Oh, please let me know if this helps.


Andrei Smolin
Add-in Express Team Leader
Posted 01 Mar, 2010 07:05:07 Top
Mimi Yang




Posts: 120
Joined: 2010-02-01
Hi Andrei,

I tried it again. The same problem exists.

With outlook 2007, looks like the outloook will not start ( i can see a new outlook process in the task manager, but no UI) until the add-in is fully shut down (AddinModule_AddinFinalize event handler has been executed). With Win XP, those outlook process will go away once the add-in shut down. With Win 7, the outlook will start without add-in been loaded (the InitializeComponent() of add-in is not called).

Thanks a lot.
Posted 01 Mar, 2010 13:08:04 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Mimi,

I often saw such errors ("The Operation Failed") when testing huge add-ins with Windows XP and Outlook 2003. I think we've run into a specific Outlook 2003 "feature", it raises this exception when a second Outlook instance tries to open while the first Outlook instance is being finalized. The only advice I can give to you is trying to decrease the time of add-ins unloading. In Outlook 2003 timely releasing of objects plays an important role, please make sure you release all used OOM objects by using the Marshal.ReleaseComObject method.
Posted 02 Mar, 2010 07:22:08 Top
Mimi Yang




Posts: 120
Joined: 2010-02-01
Thanks Dmitry for your advice, that's what I did.
Posted 08 Mar, 2010 15:54:08 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Mimi,

Alas, we don't know any steps that could help solve the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Mar, 2010 04:29:25 Top