Re: ThisApplication_Startup event not firing



That doesn't look like the output from a brand new VSTO addin that only has a message box in Startup. Are you sure there's nothing else in your code? Are you compiling the project to see if there are any errors?

Usually with VSTO you can run in debug mode easily on the development machine but run into problems when deploying due to lack of prerequisites, deployed dll's and security settings.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Bon733" <bon@xxxxxxxxxxxxxxxxxxxx> wrote in message news:B145CDD4-D279-483D-9CB6-7C38C52D5D5A@xxxxxxxxxxxxxxxx
I created a fresh addin outlook add-in with a simple message box on the
ThisApplication_Startup event. However the event will not fire in debug. When
I check the COM-Addins section, the add-in is nto checked. I made sure the
project configuration is in debug mode. I have also removed VSTO, 2.0
framework, and SDK and reinstalled them all.

Any ideas?



Here's the debug code:



'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\OUTLOOK.EXE', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\ntdll.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\kernel32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\OUTLLIB.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\msvcrt.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\advapi32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\rpcrt4.dll', No symbols loaded.

'Outlook.exe': Loaded
'C:\windows\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\gdi32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\user32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\shlwapi.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\ole32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\shimeng.dll', No symbols loaded.

'Outlook.exe': Unloaded 'C:\windows\system32\shimeng.dll'

'Outlook.exe': Loaded 'C:\Program Files\Common Files\Microsoft
Shared\OFFICE11\MSO.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\uxtheme.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\msctf.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\UltraMon\RTSUltraMonHook.dll', No
symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\1033\OUTLLIBR.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\MSMAPI32.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\oleaut32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\MAPI32.DLL', Cannot find or open a required DBG file.

'Outlook.exe': Loaded 'C:\windows\system32\msi.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\MAPIR.DLL', No symbols loaded.

'Outlook.exe': Unloaded 'C:\windows\system32\msi.dll'

'Outlook.exe': Loaded 'C:\windows\system32\version.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program
Files\UltraMon\Resources\en\RTSUltraMonHookRes.dll', Binary was not built
with debug information.

'Outlook.exe': Loaded 'C:\windows\system32\msimg32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\shell32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\comctl32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Common Files\Microsoft
Shared\OFFICE11\RICHED20.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\CONTAB32.DLL', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\abstvm32.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\LanguageStrings.dll', Binary was
not built with debug information.

'Outlook.exe': Loaded 'C:\windows\system32\msvcp60.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\AgntUtil.dll', No symbols loaded.

InitializeTrace

'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.

'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'

InitializeTrace

'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.

'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'

'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\CSISEvtQ.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\mfc42u.dll', No symbols loaded.

InitializeTrace

'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.

'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'

'Outlook.exe': Loaded 'C:\windows\system32\clbcatq.dll', No symbols loaded.

'Outlook.exe': Loaded 'C:\windows\system32\comres.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msi.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\xpsp2res.dll', Binary was not
built with debug information.
'Outlook.exe': Loaded 'C:\windows\system32\sxs.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\apphelp.dll', No symbols loaded.
InitializeTrace
'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.
'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'
'Outlook.exe': Loaded 'C:\Program Files\Groove
Networks\Groove\Bin\GrooveOOM.DLL', Binary was not built with debug
information.
'Outlook.exe': Loaded 'C:\windows\system32\mfc42.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\atl.dll', No symbols loaded.
InitializeTrace
'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.
'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'
(244) 09:17:18.378 PST [AutoCHM] InitializeTrace: Outlook.exe
'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\MSPST32.DLL', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\VMCmdExt.dll', Binary was not built with debug information.
'Outlook.exe': Loaded 'C:\Program Files\Common
Files\System\MSMAPI\1033\OUTEX.DLL', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\netapi32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\oleacc.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.
'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'
The thread 'Win32 Thread' (0x17c4) has exited with code 0 (0x0).
'Outlook.exe': Loaded 'C:\Program Files\Adobe\Acrobat
7.0\PDFMaker\Mail\Outlook\PDFMOutlook.dll', Binary was not built with debug
information.
'Outlook.exe': Loaded 'C:\Program Files\Adobe\Acrobat
7.0\PDFMaker\Common\AdobePDFMakerX.dll', Binary was not built with debug
information.
'Outlook.exe': Loaded 'C:\windows\system32\comdlg32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\winspool.drv', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Adobe\Acrobat
7.0\Distillr\adist32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Adobe\Acrobat 7.0\Esl\asneu.dll', No
symbols loaded.
'Outlook.exe': Unloaded 'C:\Program Files\Adobe\Acrobat 7.0\Esl\asneu.dll'
'Outlook.exe': Loaded 'C:\windows\system32\mlang.dll', No symbols loaded.
InitializeTrace
'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\OUTLRPC.DLL', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\setupapi.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\wintrust.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\crypt32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msasn1.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\imagehlp.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\winmm.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\wdmaud.drv', No symbols loaded.
'Outlook.exe': Unloaded 'C:\windows\system32\wdmaud.drv'
'Outlook.exe': Loaded 'C:\windows\system32\wdmaud.drv', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msacm32.drv', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msacm32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\midimap.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\OUTLACCT.DLL', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msident.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msidntld.dll', Binary was not
built with debug information.
'Outlook.exe': Loaded 'C:\windows\system32\pstorec.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\ntmarta.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\wldap32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\samlib.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\imm32.dll', No symbols loaded.
InitializeTrace
'Outlook.exe': Loaded 'C:\Program Files\Microsoft
Office\OFFICE11\OUTLPH.DLL', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\xpstvm32.dll', Binary was not built with debug information.
InitializeTrace
'Outlook.exe': Loaded 'C:\windows\system32\shfolder.dll', No symbols loaded.
'Outlook.exe': Unloaded 'C:\windows\system32\shfolder.dll'
'Outlook.exe': Loaded 'C:\windows\system32\actxprxy.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Shoreline Communications\ShoreWare
Client\STPNums.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\wsock32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\ws2_32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\ws2help.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\Program Files\Juniper Networks\Secure Application
Manager\samnsp.dll', Binary was not built with debug information.
'Outlook.exe': Loaded 'C:\windows\system32\secur32.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\mswsock.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\dnsapi.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\inetcomm.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\msoert2.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\inetres.dll', Binary was not
built with debug information.
'Outlook.exe': Loaded 'C:\windows\system32\winrnr.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\rasadhlp.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\hnetcfg.dll', No symbols loaded.
The thread 'Win32 Thread' (0x159c) has exited with code 0 (0x0).
'Outlook.exe': Loaded 'C:\windows\system32\wshtcpip.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\schannel.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\userenv.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\rsaenh.dll', No symbols loaded.
'Outlook.exe': Loaded 'C:\windows\system32\dssenh.dll', No symbols loaded.



.



Relevant Pages

  • Re: unhandled exception in the designer
    ... Microsoft Visual Studio ... not built with debug information. ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: ThisApplication_Startup event not firing
    ... a previous add-in was selected as disabled. ... Why would disabling one add-in disable all future add-ins from running? ... not built with debug information. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: GetModuleHandle
    ... some other MFC DLL, or you're linking statically. ... the Output window tells me waht is loading - see below ... Binary was not built with debug information. ...
    (microsoft.public.vc.mfc)
  • ThisApplication_Startup event not firing
    ... However the event will not fire in debug. ... not built with debug information. ... InitializeTrace ...
    (microsoft.public.vsnet.vstools.office)
  • Re: Tracking down a access violation
    ... have the complete source to GComm. ... Make sure GComm.dll is built with debug information. ... Compiler: /Zi ...
    (microsoft.public.vc.language)

Loading