473,385 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Outlook won't load my Addin (VS2005 C#)

I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as specified,
but no breakpoints are hit in my source code. The Addin isn't being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up fine
from Outlook. I archived my existing code, cleared out the registry and
recreated a brand new Addin project with the same name. The internal code is
exactly the same as Addin1, which loads fine, but my named Addin doesn;t
load up.

Sure, I could abandon the name I'm using, but I like the name, I'm working
on a product and I'd like to keep the name if I can. I don't want to have to
change my product name, just because my Outlook doesn't want to load it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -
May 4 '06 #1
7 2588
Is Outlook showing that addin as disabled? Check in Help, About, Disabled
Items. If so there was some crash or unhandled exception and your addin was
disabled by Outlook.

--
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
"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin isn't
being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the registry
and recreated a brand new Addin project with the same name. The internal
code is exactly the same as Addin1, which loads fine, but my named Addin
doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm working
on a product and I'd like to keep the name if I can. I don't want to have
to change my product name, just because my Outlook doesn't want to load
it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -


May 4 '06 #2
Your project output and your debug symbols are not synching correctly, to
begin with. If you attempted to install the addin with VS2005 and then made
significant changes to the code base you will most definitely have problems.

One of a few steps you can do is go to the Project Properties and redirect
your project output to the location of your installed addin. That way you
can make changes and still be able to step through the code. This is done by
right-clicking the Addin project choosing Properties, then selecting the
Build tab, under the Output delimter browse to where you have previously
installed the code.

If you really want to reuse the first name of your addin you are going to
have to do a registry clean of the GUID that you used for your original
addin. Even if you uninstalled and thought you got all the entries, you may
not have.

Sometimes though it might be worth shutting down VS2005, rebooting your
system and starting where you left off.

Regards,

Thaddaeus.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin isn't
being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the registry
and recreated a brand new Addin project with the same name. The internal
code is exactly the same as Addin1, which loads fine, but my named Addin
doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm working
on a product and I'd like to keep the name if I can. I don't want to have
to change my product name, just because my Outlook doesn't want to load
it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -

May 4 '06 #3
Hi Ken,

No disabled items showing.

Thanks,

- Joseph Geretz -

"Ken Slovak - [MVP - Outlook]" <ke*******@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Is Outlook showing that addin as disabled? Check in Help, About, Disabled
Items. If so there was some crash or unhandled exception and your addin
was disabled by Outlook.

--
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
"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin isn't
being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the registry
and recreated a brand new Addin project with the same name. The internal
code is exactly the same as Addin1, which loads fine, but my named Addin
doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm
working on a product and I'd like to keep the name if I can. I don't want
to have to change my product name, just because my Outlook doesn't want
to load it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -

May 5 '06 #4
Hi Thaddaeus,
Your project output and your debug symbols are not synching correctly, to
begin with. If you attempted to install the addin with VS2005 and then
made significant changes to the code base you will most definitely have
problems.
But aside from not hitting my breakpoints, I don't even see the Add In
appearing in Outlook. If my AddIn loads, it installs several toobar buttons
and menu items, but these are not appearing.
One of a few steps you can do is go to the Project Properties and redirect
your project output to the location of your installed addin.
I'm not sure what you mean by this. I never actually installed the AddIn.
I've just been running this from within Visual Studio. Eventually I'll need
to work on a deployment, but for now it seems that VS has been taking care
of 'behind the scenes' installation.
If you really want to reuse the first name of your addin you are going to
have to do a registry clean of the GUID that you used for your original
addin. Even if you uninstalled and thought you got all the entries, you
may not have.
I will give this a shot.

Thanks!

- Joe Geretz -

"Thaddaeus Parker" <tp*****@microlinkllc.com> wrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl... Your project output and your debug symbols are not synching correctly, to
begin with. If you attempted to install the addin with VS2005 and then
made significant changes to the code base you will most definitely have
problems.

One of a few steps you can do is go to the Project Properties and redirect
your project output to the location of your installed addin. That way you
can make changes and still be able to step through the code. This is done
by right-clicking the Addin project choosing Properties, then selecting
the Build tab, under the Output delimter browse to where you have
previously installed the code.

If you really want to reuse the first name of your addin you are going to
have to do a registry clean of the GUID that you used for your original
addin. Even if you uninstalled and thought you got all the entries, you
may not have.

Sometimes though it might be worth shutting down VS2005, rebooting your
system and starting where you left off.

Regards,

Thaddaeus.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin isn't
being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the registry
and recreated a brand new Addin project with the same name. The internal
code is exactly the same as Addin1, which loads fine, but my named Addin
doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm
working on a product and I'd like to keep the name if I can. I don't want
to have to change my product name, just because my Outlook doesn't want
to load it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -


May 5 '06 #5
Rog
Having built add-ins in VS2003 using C# I have run into issues where my
add-in did this same exact thing and it came down to my add-in after it
was rebuilt not registering itself.
At one point I used a COM Shim in order to load my add-in, but this
solution does not work on .net 2.0. So I went back to using regasm which
is what VS uses anyway. One thing I would definately check is that your
add-in is being registered after it has been compiled.
Rog

Joseph Geretz wrote:
Hi Thaddaeus,
Your project output and your debug symbols are not synching correctly, to
begin with. If you attempted to install the addin with VS2005 and then
made significant changes to the code base you will most definitely have
problems.


But aside from not hitting my breakpoints, I don't even see the Add In
appearing in Outlook. If my AddIn loads, it installs several toobar buttons
and menu items, but these are not appearing.
One of a few steps you can do is go to the Project Properties and redirect
your project output to the location of your installed addin.


I'm not sure what you mean by this. I never actually installed the AddIn.
I've just been running this from within Visual Studio. Eventually I'll need
to work on a deployment, but for now it seems that VS has been taking care
of 'behind the scenes' installation.
If you really want to reuse the first name of your addin you are going to
have to do a registry clean of the GUID that you used for your original
addin. Even if you uninstalled and thought you got all the entries, you
may not have.


I will give this a shot.

Thanks!

- Joe Geretz -

"Thaddaeus Parker" <tp*****@microlinkllc.com> wrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl...
Your project output and your debug symbols are not synching correctly, to
begin with. If you attempted to install the addin with VS2005 and then
made significant changes to the code base you will most definitely have
problems.

One of a few steps you can do is go to the Project Properties and redirect
your project output to the location of your installed addin. That way you
can make changes and still be able to step through the code. This is done
by right-clicking the Addin project choosing Properties, then selecting
the Build tab, under the Output delimter browse to where you have
previously installed the code.

If you really want to reuse the first name of your addin you are going to
have to do a registry clean of the GUID that you used for your original
addin. Even if you uninstalled and thought you got all the entries, you
may not have.

Sometimes though it might be worth shutting down VS2005, rebooting your
system and starting where you left off.

Regards,

Thaddaeus.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long now,
just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin isn't
being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the registry
and recreated a brand new Addin project with the same name. The internal
code is exactly the same as Addin1, which loads fine, but my named Addin
doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm
working on a product and I'd like to keep the name if I can. I don't want
to have to change my product name, just because my Outlook doesn't want
to load it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -


May 5 '06 #6
What if you set a breakpoint in your addin and right-click on the breakpoint
and select the Location menu item. In that dialog check the "allow source
code to be different from the original version" checkbox. Does that help at
all?

--
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
"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP02.phx.gbl...
Hi Ken,

No disabled items showing.

Thanks,

- Joseph Geretz -


May 5 '06 #7
Hi Rog,
One thing I would definately check is that your add-in is being registered
after it has been compiled.
How do I check this? Under Project | Properties | Build Tab, Register for
COM interop is checked. What can I do further to confirm that this is
actually being properly registered?

Thanks!

- Joe Geretz -

"Rog" <ro****@yahoo.com> wrote in message
news:ex**************@TK2MSFTNGP02.phx.gbl... Having built add-ins in VS2003 using C# I have run into issues where my
add-in did this same exact thing and it came down to my add-in after it
was rebuilt not registering itself.
At one point I used a COM Shim in order to load my add-in, but this
solution does not work on .net 2.0. So I went back to using regasm which
is what VS uses anyway. One thing I would definately check is that your
add-in is being registered after it has been compiled.
Rog

Joseph Geretz wrote:
Hi Thaddaeus,
Your project output and your debug symbols are not synching correctly,
to begin with. If you attempted to install the addin with VS2005 and
then made significant changes to the code base you will most definitely
have problems.


But aside from not hitting my breakpoints, I don't even see the Add In
appearing in Outlook. If my AddIn loads, it installs several toobar
buttons and menu items, but these are not appearing.
One of a few steps you can do is go to the Project Properties and
redirect your project output to the location of your installed addin.


I'm not sure what you mean by this. I never actually installed the AddIn.
I've just been running this from within Visual Studio. Eventually I'll
need to work on a deployment, but for now it seems that VS has been
taking care of 'behind the scenes' installation.
If you really want to reuse the first name of your addin you are going
to have to do a registry clean of the GUID that you used for your
original addin. Even if you uninstalled and thought you got all the
entries, you may not have.


I will give this a shot.

Thanks!

- Joe Geretz -

"Thaddaeus Parker" <tp*****@microlinkllc.com> wrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl...
Your project output and your debug symbols are not synching correctly,
to begin with. If you attempted to install the addin with VS2005 and
then made significant changes to the code base you will most definitely
have problems.

One of a few steps you can do is go to the Project Properties and
redirect your project output to the location of your installed addin.
That way you can make changes and still be able to step through the
code. This is done by right-clicking the Addin project choosing
Properties, then selecting the Build tab, under the Output delimter
browse to where you have previously installed the code.

If you really want to reuse the first name of your addin you are going
to have to do a registry clean of the GUID that you used for your
original addin. Even if you uninstalled and thought you got all the
entries, you may not have.

Sometimes though it might be worth shutting down VS2005, rebooting your
system and starting where you left off.

Regards,

Thaddaeus.

"Joseph Geretz" <jg*****@nospam.com> wrote in message
news:uf**************@TK2MSFTNGP03.phx.gbl...
I've been working on an Addin for Outlook in C#. It hasn't been long
now, just a couple of days.

Suddenly though, running my project in Debug launches Outlook as
specified, but no breakpoints are hit in my source code. The Addin
isn't being loaded.

If I create a new Addin program from scratch, e.g. AddIn1, it loads up
fine from Outlook. I archived my existing code, cleared out the
registry and recreated a brand new Addin project with the same name.
The internal code is exactly the same as Addin1, which loads fine, but
my named Addin doesn;t load up.

Sure, I could abandon the name I'm using, but I like the name, I'm
working on a product and I'd like to keep the name if I can. I don't
want to have to change my product name, just because my Outlook doesn't
want to load it!

What can I do to diagnose this?

Thanks for your help!

- Joseph Geretz -


May 7 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Samuel Bernard | last post by:
Hi, I created an addin for Outlook 2003. It creates a menu in Outlook in order to allow the user to access severals options of our Web site. I use MsiInstaller of MS to install this addin which...
6
by: Ernie | last post by:
We have an Outlook 2000 VBA application - 8 user forms, and about a thousand lines of code - that we wish to distribute. We know that we can password-protect the code, but that does not give us the...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
6
by: Pieter | last post by:
Hi, I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that sometimes suddenly stops loading. I've put everywhere in the code Exception Handlers, but no Exception is catched. it...
1
by: =?Utf-8?B?TmVlbENoYW5kcmE=?= | last post by:
Hi , I am Using Visual Studio 2005 (VB code) to develop a AddIn for Outlook 2003; I need to find out from the AddIn If Of Outlook 2003 is connected to internet , That is, Is Outlook 2003...
1
by: John | last post by:
Hi I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn template in vs 2008. The full code is given below at the end. I got warnings on Interop assemblies as I have Office 2007...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.