PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins problem with Outlook Addin written with C#

Reply

problem with Outlook Addin written with C#

 
Thread Tools Rate Thread
Old 03-04-2005, 10:26 PM   #1
Yeghia Dolbakyan
Guest
 
Posts: n/a
Default problem with Outlook Addin written with C#


Hi All

I have difficulty with my add-in written on C#. After I've created the
project in VS2003 I succesfully implemented a lot of stuff in addin and
suddenly it stopped working. The addin as a COM object is successfully
create in another application, and even as an add-in it is working jsut fine
on another PC but on my computer it is not loading to Outlook. When I place
a check in add-ins dialog no error is shown there and after I show up the
dialog again the checkbo for my add-in is cleared.

Can someone tell me what is the problem

Thanks in advance

Regards
Yeghia


  Reply With Quote
Old 04-04-2005, 07:42 AM   #2
Helmut Obertanner
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Hello Yeghia,

how did you created your Outlook AddIn ?
VS2003 Wizard ?
Remove the reference to office.dll.
in properties you can see where it points to.
if it points to your Framework directory, it s wrong.
remove the reference and add new reference to Office 11 COM Object library.
Recompile and try again.
put a simple messagebox into your OnConnection event to see if your AddIN is
loaded.

I want to know if the AddIn that you can see is checked in the AddIns Dialog
?

How did you deployed your AddIn ?
I suggest the following:
Don't register the PIA's into the GAC, exclude the office and outlook dlls
from setup.

However, i can only point you to some of my examples here. Maybe it helps.

http://www.outlookcode.com/codedetail.aspx?id=797
http://www.outlookcode.com/codedetail.aspx?id=789

Freundliche Grüße / with regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de




"Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
news:uqIwwBTOFHA.904@tk2msftngp13.phx.gbl...
> Hi Helmut
>
> It is not loaded at all. For experiment I've created new add-in with
> VS2003 it is not loading as well. They just appear in the Outlook's
> dialog - no error message, nothing.
>
> I don't know what to do?
>
> Regards
> Yeghia
>
>
> "Helmut Obertanner" <obertanner@datalog.de> wrote in message
> news:uWgeJ2OOFHA.2132@TK2MSFTNGP14.phx.gbl...
>> Hello Yeghia,
>>
>> do you have implemented an Errorlogging and try catch satements in every
>> function ?
>> Did you get an errormessage ?
>>
>> --
>> Freundliche Grüße / with regards
>>
>> Helmut Obertanner
>> Technical Consultant
>>
>> Softwaredevelopment
>> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
>> web: www.datalog.de
>>
>>
>> ... and IT works!
>>
>> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
>> news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
>>> Hi All
>>>
>>> I have difficulty with my add-in written on C#. After I've created the
>>> project in VS2003 I succesfully implemented a lot of stuff in addin and
>>> suddenly it stopped working. The addin as a COM object is successfully
>>> create in another application, and even as an add-in it is working jsut
>>> fine on another PC but on my computer it is not loading to Outlook. When
>>> I place a check in add-ins dialog no error is shown there and after I
>>> show up the dialog again the checkbo for my add-in is cleared.
>>>
>>> Can someone tell me what is the problem
>>>
>>> Thanks in advance
>>>
>>> Regards
>>> Yeghia
>>>

>>
>>

>
>



  Reply With Quote
Old 04-04-2005, 08:56 AM   #3
Helmut Obertanner
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Hello,

answered in the other group also,
have a look where your PIA's are referenced to.

Maybe have also alook for Disabled Items:

To enable it, go to the Outlook Help menu, then click on the option "About
Microsoft Office Outlook":

The Microsoft Outlook About window will open: from the bottom section, click
on the "Disabled Items..." button, then select four addin from that list
and click on the "Enable" button. You will have to restart Outlook in order
to apply the changes.


--
Freundliche Grüße / with regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


"Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
news:OuscB8UOFHA.2252@TK2MSFTNGP15.phx.gbl...
> Hi Helmut
>
> When I've added Outlook Type Library as a reference VS inserted Office 11
> library as well. During compilation of plugin VS warns of duplicate
> symbols or references, I don't remember exactly. As I said before I did a
> lot of development on this add-in, it worked. Then suddenly it stopped to
> work, it was not loading into Outlook (so MessageBoxes will not help).
> Add-in itself is a COM server and it is succesfully being created from
> another test application. So I guess the problem is not a registration of
> add-in its a problem of Outlook and Add-in interaction. I'll check now
> whether add-in developed in C++ will work correctly
>
> Add-in is registered under HKEY_CURRENT_USER\...etc
>
> Thanks for you time
>
> Regards
> Yeghia
>
> "Helmut Obertanner" <obertanner@datalog.de> wrote in message
> news:%23U0MItUOFHA.2532@TK2MSFTNGP09.phx.gbl...
>> Hello Yeghia,
>>
>> how did you created your Outlook AddIn ?
>> VS2003 Wizard ?
>> Remove the reference to office.dll.
>> in properties you can see where it points to.
>> if it points to your Framework directory, it s wrong.
>> remove the reference and add new reference to Office 11 COM Object
>> library.
>> Recompile and try again.
>> put a simple messagebox into your OnConnection event to see if your AddIN
>> is
>> loaded.
>>
>> I want to know if the AddIn that you can see is checked in the AddIns
>> Dialog
>> ?
>>
>> How did you deployed your AddIn ?
>> I suggest the following:
>> Don't register the PIA's into the GAC, exclude the office and outlook
>> dlls
>> from setup.
>>
>> However, i can only point you to some of my examples here. Maybe it
>> helps.
>>
>> http://www.outlookcode.com/codedetail.aspx?id=797
>> http://www.outlookcode.com/codedetail.aspx?id=789
>>
>> Freundliche Grüße / with regards
>>
>> Helmut Obertanner
>> Technical Consultant
>>
>> Softwaredevelopment
>> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
>> web: www.datalog.de
>>
>>
>>
>>
>> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
>> news:uqIwwBTOFHA.904@tk2msftngp13.phx.gbl...
>>> Hi Helmut
>>>
>>> It is not loaded at all. For experiment I've created new add-in with
>>> VS2003 it is not loading as well. They just appear in the Outlook's
>>> dialog - no error message, nothing.
>>>
>>> I don't know what to do?
>>>
>>> Regards
>>> Yeghia
>>>
>>>
>>> "Helmut Obertanner" <obertanner@datalog.de> wrote in message
>>> news:uWgeJ2OOFHA.2132@TK2MSFTNGP14.phx.gbl...
>>>> Hello Yeghia,
>>>>
>>>> do you have implemented an Errorlogging and try catch satements in
>>>> every
>>>> function ?
>>>> Did you get an errormessage ?
>>>>
>>>> --
>>>> Freundliche Grüße / with regards
>>>>
>>>> Helmut Obertanner
>>>> Technical Consultant
>>>>
>>>> Softwaredevelopment
>>>> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
>>>> web: www.datalog.de
>>>>
>>>>
>>>> ... and IT works!
>>>>
>>>> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
>>>> news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
>>>>> Hi All
>>>>>
>>>>> I have difficulty with my add-in written on C#. After I've created the
>>>>> project in VS2003 I succesfully implemented a lot of stuff in addin
>>>>> and
>>>>> suddenly it stopped working. The addin as a COM object is successfully
>>>>> create in another application, and even as an add-in it is working
>>>>> jsut
>>>>> fine on another PC but on my computer it is not loading to Outlook.
>>>>> When
>>>>> I place a check in add-ins dialog no error is shown there and after I
>>>>> show up the dialog again the checkbo for my add-in is cleared.
>>>>>
>>>>> Can someone tell me what is the problem
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Regards
>>>>> Yeghia
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>
>



  Reply With Quote
Old 04-04-2005, 09:06 AM   #4
Helmut Obertanner
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Hello Yeghia,

do you have implemented an Errorlogging and try catch satements in every
function ?
Did you get an errormessage ?

--
Freundliche Grüße / with regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

"Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
> Hi All
>
> I have difficulty with my add-in written on C#. After I've created the
> project in VS2003 I succesfully implemented a lot of stuff in addin and
> suddenly it stopped working. The addin as a COM object is successfully
> create in another application, and even as an add-in it is working jsut
> fine on another PC but on my computer it is not loading to Outlook. When I
> place a check in add-ins dialog no error is shown there and after I show
> up the dialog again the checkbo for my add-in is cleared.
>
> Can someone tell me what is the problem
>
> Thanks in advance
>
> Regards
> Yeghia
>



  Reply With Quote
Old 04-04-2005, 05:07 PM   #5
Yeghia Dolbakyan
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Hi Helmut

It is not loaded at all. For experiment I've created new add-in with VS2003
it is not loading as well. They just appear in the Outlook's dialog - no
error message, nothing.

I don't know what to do?

Regards
Yeghia


"Helmut Obertanner" <obertanner@datalog.de> wrote in message
news:uWgeJ2OOFHA.2132@TK2MSFTNGP14.phx.gbl...
> Hello Yeghia,
>
> do you have implemented an Errorlogging and try catch satements in every
> function ?
> Did you get an errormessage ?
>
> --
> Freundliche Grüße / with regards
>
> Helmut Obertanner
> Technical Consultant
>
> Softwaredevelopment
> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
> web: www.datalog.de
>
>
> ... and IT works!
>
> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
> news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
>> Hi All
>>
>> I have difficulty with my add-in written on C#. After I've created the
>> project in VS2003 I succesfully implemented a lot of stuff in addin and
>> suddenly it stopped working. The addin as a COM object is successfully
>> create in another application, and even as an add-in it is working jsut
>> fine on another PC but on my computer it is not loading to Outlook. When
>> I place a check in add-ins dialog no error is shown there and after I
>> show up the dialog again the checkbo for my add-in is cleared.
>>
>> Can someone tell me what is the problem
>>
>> Thanks in advance
>>
>> Regards
>> Yeghia
>>

>
>



  Reply With Quote
Old 04-04-2005, 06:12 PM   #6
Mark Smith
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Without knowing anything about C# I can offer the following suggestion:

I have seen this behavior several times with the addin I am developing in
C++. It usually boils down to some error condition I have run into. Either
the addin is crashing somewhere or a vital function, such as
_IDTExtensibility2::OnConnection (my implementation, not Outlook) is
returning a failure.

Every once in a while it seemed to be an installation problem of some sort
that got fixed if I fully uninstalled the addin and then reinstalled it.

Mark

"Yeghia Dolbakyan" <yeghia@netsys.am> wrote in message
news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
> Hi All
>
> I have difficulty with my add-in written on C#. After I've created the
> project in VS2003 I succesfully implemented a lot of stuff in addin and
> suddenly it stopped working. The addin as a COM object is successfully
> create in another application, and even as an add-in it is working jsut
> fine on another PC but on my computer it is not loading to Outlook. When I
> place a check in add-ins dialog no error is shown there and after I show
> up the dialog again the checkbo for my add-in is cleared.
>
> Can someone tell me what is the problem
>
> Thanks in advance
>
> Regards
> Yeghia
>



  Reply With Quote
Old 05-04-2005, 03:48 PM   #7
Yeghia Dolbakyan
Guest
 
Posts: n/a
Default Re: problem with Outlook Addin written with C#

Thanks Helmut

Indeed, my add-in was in that list.

Thanks very much for your time and help

Regards
Yeghia



"Helmut Obertanner" <obertanner@datalog.de> wrote in message
news:u7jruBVOFHA.2728@TK2MSFTNGP15.phx.gbl...
> Hello,
>
> answered in the other group also,
> have a look where your PIA's are referenced to.
>
> Maybe have also alook for Disabled Items:
>
> To enable it, go to the Outlook Help menu, then click on the option "About
> Microsoft Office Outlook":
>
> The Microsoft Outlook About window will open: from the bottom section,
> click on the "Disabled Items..." button, then select four addin from that
> list and click on the "Enable" button. You will have to restart Outlook in
> order to apply the changes.
>
>
> --
> Freundliche Grüße / with regards
>
> Helmut Obertanner
> Technical Consultant
>
> Softwaredevelopment
> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
> web: www.datalog.de
>
>
> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
> news:OuscB8UOFHA.2252@TK2MSFTNGP15.phx.gbl...
>> Hi Helmut
>>
>> When I've added Outlook Type Library as a reference VS inserted Office 11
>> library as well. During compilation of plugin VS warns of duplicate
>> symbols or references, I don't remember exactly. As I said before I did a
>> lot of development on this add-in, it worked. Then suddenly it stopped to
>> work, it was not loading into Outlook (so MessageBoxes will not help).
>> Add-in itself is a COM server and it is succesfully being created from
>> another test application. So I guess the problem is not a registration of
>> add-in its a problem of Outlook and Add-in interaction. I'll check now
>> whether add-in developed in C++ will work correctly
>>
>> Add-in is registered under HKEY_CURRENT_USER\...etc
>>
>> Thanks for you time
>>
>> Regards
>> Yeghia
>>
>> "Helmut Obertanner" <obertanner@datalog.de> wrote in message
>> news:%23U0MItUOFHA.2532@TK2MSFTNGP09.phx.gbl...
>>> Hello Yeghia,
>>>
>>> how did you created your Outlook AddIn ?
>>> VS2003 Wizard ?
>>> Remove the reference to office.dll.
>>> in properties you can see where it points to.
>>> if it points to your Framework directory, it s wrong.
>>> remove the reference and add new reference to Office 11 COM Object
>>> library.
>>> Recompile and try again.
>>> put a simple messagebox into your OnConnection event to see if your
>>> AddIN is
>>> loaded.
>>>
>>> I want to know if the AddIn that you can see is checked in the AddIns
>>> Dialog
>>> ?
>>>
>>> How did you deployed your AddIn ?
>>> I suggest the following:
>>> Don't register the PIA's into the GAC, exclude the office and outlook
>>> dlls
>>> from setup.
>>>
>>> However, i can only point you to some of my examples here. Maybe it
>>> helps.
>>>
>>> http://www.outlookcode.com/codedetail.aspx?id=797
>>> http://www.outlookcode.com/codedetail.aspx?id=789
>>>
>>> Freundliche Grüße / with regards
>>>
>>> Helmut Obertanner
>>> Technical Consultant
>>>
>>> Softwaredevelopment
>>> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
>>> web: www.datalog.de
>>>
>>>
>>>
>>>
>>> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
>>> news:uqIwwBTOFHA.904@tk2msftngp13.phx.gbl...
>>>> Hi Helmut
>>>>
>>>> It is not loaded at all. For experiment I've created new add-in with
>>>> VS2003 it is not loading as well. They just appear in the Outlook's
>>>> dialog - no error message, nothing.
>>>>
>>>> I don't know what to do?
>>>>
>>>> Regards
>>>> Yeghia
>>>>
>>>>
>>>> "Helmut Obertanner" <obertanner@datalog.de> wrote in message
>>>> news:uWgeJ2OOFHA.2132@TK2MSFTNGP14.phx.gbl...
>>>>> Hello Yeghia,
>>>>>
>>>>> do you have implemented an Errorlogging and try catch satements in
>>>>> every
>>>>> function ?
>>>>> Did you get an errormessage ?
>>>>>
>>>>> --
>>>>> Freundliche Grüße / with regards
>>>>>
>>>>> Helmut Obertanner
>>>>> Technical Consultant
>>>>>
>>>>> Softwaredevelopment
>>>>> DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
>>>>> web: www.datalog.de
>>>>>
>>>>>
>>>>> ... and IT works!
>>>>>
>>>>> "Yeghia Dolbakyan" <yeghia@netsys.am> schrieb im Newsbeitrag
>>>>> news:ubvbCPJOFHA.164@TK2MSFTNGP12.phx.gbl...
>>>>>> Hi All
>>>>>>
>>>>>> I have difficulty with my add-in written on C#. After I've created
>>>>>> the
>>>>>> project in VS2003 I succesfully implemented a lot of stuff in addin
>>>>>> and
>>>>>> suddenly it stopped working. The addin as a COM object is
>>>>>> successfully
>>>>>> create in another application, and even as an add-in it is working
>>>>>> jsut
>>>>>> fine on another PC but on my computer it is not loading to Outlook.
>>>>>> When
>>>>>> I place a check in add-ins dialog no error is shown there and after I
>>>>>> show up the dialog again the checkbo for my add-in is cleared.
>>>>>>
>>>>>> Can someone tell me what is the problem
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>> Regards
>>>>>> Yeghia
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off