problem with Outlook Addin written with C#

  • Thread starter Yeghia Dolbakyan
  • Start date
Y

Yeghia Dolbakyan

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
 
H

Helmut Obertanner

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
 
H

Helmut Obertanner

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
 
H

Helmut Obertanner

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!
 
Y

Yeghia Dolbakyan

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
 
M

Mark Smith

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
 
Y

Yeghia Dolbakyan

Thanks Helmut

Indeed, my add-in was in that list.

Thanks very much for your time and help

Regards
Yeghia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top