PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
problem with Outlook Addin written with C#
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
problem with Outlook Addin written with C#
![]() |
problem with Outlook Addin written with C# |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 >>> >> >> > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 >>>>> >>>> >>>> >>> >>> >> >> > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 >> > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#7 |
|
Guest
Posts: n/a
|
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 >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

