Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   AddIn do not start (http://www.outlookbanter.com/add-ins-outlook/71192-addin-do-not-start.html)

Hahn, Thomas April 30th 08 12:10 PM

AddIn do not start
 
Hallo NG!

I write an Addin for Outlook 2002. On the development maschine the addin is
start with outlook.

Now the development is completed and I would deploy the addin to each
clients. For this I have create an Setup, which install the AddIn on the
target machine. All the file and regiytry values are wrote by the setup
correctly.

If I start Outlook the AddIn will not runing. I do not get any errors or
something else

I use
Windows XP SP2 with Outlook 2002

to developing
Visual Studios 2008

Thanks for your answer

TH



Ken Slovak - [MVP - Outlook] April 30th 08 03:03 PM

AddIn do not start
 
Did you look in the COM Add-Ins dialog to see if your addin is listed and
checked?

If it's there but not checked does it start up when you check it?

Is it listed in the Disabled Items dialog (Help, About Microsoft Office
Outlook, Disabled Items button)?

Did you make sure to deploy all requirements and pre-requisites such as the
VSTO runtime, any required VSTO language pack, Framework, etc?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
Hallo NG!

I write an Addin for Outlook 2002. On the development maschine the addin
is start with outlook.

Now the development is completed and I would deploy the addin to each
clients. For this I have create an Setup, which install the AddIn on the
target machine. All the file and regiytry values are wrote by the setup
correctly.

If I start Outlook the AddIn will not runing. I do not get any errors or
something else

I use
Windows XP SP2 with Outlook 2002

to developing
Visual Studios 2008

Thanks for your answer

TH



Hahn, Thomas May 1st 08 07:49 AM

AddIn do not start
 
Hallo Ken,

The Add-In is not listen in the COM Add-Ins dialog. The dialog ist eamty.
So I can not activate my Add-In, because I do not see it.
It is also not in the list of deactived items. -- I can't see my Add-In in
outlook.
The registry values are all right - they are the same about the developer
machine.

I deployed all the needed files (components) The test pc and the developer
pc have the same version of XP and Outlook. The .net framework are
different. on the developer pc is the version 3.5 installed and on the test
pc the version 2. But the Add-In is develop for the .net framework 2.


Thomas

"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag
...
Did you look in the COM Add-Ins dialog to see if your addin is listed and
checked?

If it's there but not checked does it start up when you check it?

Is it listed in the Disabled Items dialog (Help, About Microsoft Office
Outlook, Disabled Items button)?

Did you make sure to deploy all requirements and pre-requisites such as
the VSTO runtime, any required VSTO language pack, Framework, etc?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
Hallo NG!

I write an Addin for Outlook 2002. On the development maschine the addin
is start with outlook.

Now the development is completed and I would deploy the addin to each
clients. For this I have create an Setup, which install the AddIn on the
target machine. All the file and regiytry values are wrote by the setup
correctly.

If I start Outlook the AddIn will not runing. I do not get any errors or
something else

I use
Windows XP SP2 with Outlook 2002

to developing
Visual Studios 2008

Thanks for your answer

TH





Ken Slovak - [MVP - Outlook] May 1st 08 02:41 PM

AddIn do not start
 
An addin developed for Framework 2 shouldn't have any problems with
Framework 3 or 3.5.

If the addin is not listed in the COM Add-Ins dialog then it's one of 2
things. Either it's registered in HKLM and is an admin installation, or it's
not registered at all and therefore will never be started by Outlook.

Look at HKLM\Software\Microsoft\Office\Outlook\Addins and see if your addin
is registered there. Look also at HKCU with the same path and see if it's
registered there. You should see an entry for your addin using the ProgID
you set for your addin in the project.

Under that registry key you should see LoadBehavior, Description,
FriendlyName and CommandLineSafe. If those entries are not there the addin
is not correctly registered as an addin for Outlook.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
Hallo Ken,

The Add-In is not listen in the COM Add-Ins dialog. The dialog ist eamty.
So I can not activate my Add-In, because I do not see it.
It is also not in the list of deactived items. -- I can't see my Add-In in
outlook.
The registry values are all right - they are the same about the developer
machine.

I deployed all the needed files (components) The test pc and the developer
pc have the same version of XP and Outlook. The .net framework are
different. on the developer pc is the version 3.5 installed and on the
test pc the version 2. But the Add-In is develop for the .net framework 2.


Thomas



Hahn, Thomas May 2nd 08 06:53 AM

AddIn do not start
 
I have installed the Add-In with a user account who have administration
rights.
The installation was finished without any error. In the eventlog is an
entry, that the installation was finished with out any errors.

I have checked the regitry entries. All of the entries can I found on the
named path. But only one entry, the 'CommandLineSafe" entry, I don't find
them in the registry. The commandlinesafe entry is also not on my developer
pc.


"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag
...
An addin developed for Framework 2 shouldn't have any problems with
Framework 3 or 3.5.

If the addin is not listed in the COM Add-Ins dialog then it's one of 2
things. Either it's registered in HKLM and is an admin installation, or
it's not registered at all and therefore will never be started by Outlook.

Look at HKLM\Software\Microsoft\Office\Outlook\Addins and see if your
addin is registered there. Look also at HKCU with the same path and see if
it's registered there. You should see an entry for your addin using the
ProgID you set for your addin in the project.

Under that registry key you should see LoadBehavior, Description,
FriendlyName and CommandLineSafe. If those entries are not there the addin
is not correctly registered as an addin for Outlook.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
Hallo Ken,

The Add-In is not listen in the COM Add-Ins dialog. The dialog ist eamty.
So I can not activate my Add-In, because I do not see it.
It is also not in the list of deactived items. -- I can't see my Add-In
in outlook.
The registry values are all right - they are the same about the developer
machine.

I deployed all the needed files (components) The test pc and the
developer pc have the same version of XP and Outlook. The .net framework
are different. on the developer pc is the version 3.5 installed and on
the test pc the version 2. But the Add-In is develop for the .net
framework 2.


Thomas





Ken Slovak - [MVP - Outlook] May 2nd 08 01:48 PM

AddIn do not start
 
So where is the addin registered, in HKLM or in HKCU? What value does
LoadBehavior show, is it 3?

Do you have any error logging or other logging in the OnConnection event
handler that would tell you if you are at least getting that event?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
I have installed the Add-In with a user account who have administration
rights.
The installation was finished without any error. In the eventlog is an
entry, that the installation was finished with out any errors.

I have checked the regitry entries. All of the entries can I found on the
named path. But only one entry, the 'CommandLineSafe" entry, I don't find
them in the registry. The commandlinesafe entry is also not on my
developer pc.



Hahn, Thomas May 3rd 08 05:21 AM

AddIn do not start
 
The add in is registered in HKCU and the LoadBehavior has the value 3.

The first line in the OnConnection event is "MsgBox(Hallo World")". But the
add doesn't show the msgbox..
So the event doesn't fired

"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag
...
So where is the addin registered, in HKLM or in HKCU? What value does
LoadBehavior show, is it 3?

Do you have any error logging or other logging in the OnConnection event
handler that would tell you if you are at least getting that event?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
I have installed the Add-In with a user account who have administration
rights.
The installation was finished without any error. In the eventlog is an
entry, that the installation was finished with out any errors.

I have checked the regitry entries. All of the entries can I found on the
named path. But only one entry, the 'CommandLineSafe" entry, I don't
find them in the registry. The commandlinesafe entry is also not on my
developer pc.





Ken Slovak - [MVP - Outlook] May 5th 08 03:30 PM

AddIn do not start
 
The only times I've seen that are either if there's a load error when the
addin is loaded and/or if the addin dll isn't registered correctly for COM
(not the addin registration but the class registration of the addin dll). Is
your addin dll set to be vsdrpCOM in the register property of the output of
the dll as shown in the setup project? Does the COM Add-Ins dialog show the
addin at all and if so if you check it do you see a load error from mscorlib
or other source?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
The add in is registered in HKCU and the LoadBehavior has the value 3.

The first line in the OnConnection event is "MsgBox(Hallo World")". But
the add doesn't show the msgbox..
So the event doesn't fired



Hahn, Thomas May 9th 08 11:58 AM

AddIn do not start
 
The register property of the dll is set to 'vsdrpCOM'. The com add-in dialog
dosn't show the add-in at all. So I can't check the add in.

Thomas


"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag
...
The only times I've seen that are either if there's a load error when the
addin is loaded and/or if the addin dll isn't registered correctly for COM
(not the addin registration but the class registration of the addin dll).
Is your addin dll set to be vsdrpCOM in the register property of the
output of the dll as shown in the setup project? Does the COM Add-Ins
dialog show the addin at all and if so if you check it do you see a load
error from mscorlib or other source?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
The add in is registered in HKCU and the LoadBehavior has the value 3.

The first line in the OnConnection event is "MsgBox(Hallo World")". But
the add doesn't show the msgbox..
So the event doesn't fired





Ken Slovak - [MVP - Outlook] May 9th 08 01:59 PM

AddIn do not start
 
The only reasons that the COM Add-Ins dialog doesn't show an addin are if
it's not registered or if it's registered for all users in the HKLM hive of
the registry instead of in HKCU (current user). Since you said that the
addin is registered only in HKCU (it's not there at all in HKLM, is it?) the
only thing left is that for whatever reason the addin is not being
registered.

When I say that I mean the class isn't being registered, not the addin
registration at \Software\Microsoft\Office\Outlook\Addins. The registration
I'm talking about is the COM registration in HKCR.

If that's the case then there's something wrong with your installer.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hahn, Thomas" wrote in message
...
The register property of the dll is set to 'vsdrpCOM'. The com add-in
dialog dosn't show the add-in at all. So I can't check the add in.

Thomas




All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com