Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Problem in deploying Outlook 2003 Add-in

Geek News

Problem in deploying Outlook 2003 Add-in
"vish" <vish_hss[ at ]yahoo.co.in> 7/3/2006 11:44:06 PM
I have developed the add-in using Visual studio 2005 in C#.


Outlook add-in is failing to load when Outlook starts on some machines.

It works absolutely fine on some other machine. On problematic
machines, some times the LoadBehavior is changing from 3 to 2 when
oulook starts. I can't even find my Addin either in the Disabled list
(Help_>About) or Tools->Options-Others->AdvancedOptions.


Could anyone please help me or point to any tutorial which will
help in developing the installer for this add-in using the Wise
Installer. (I want know what all files to be added to target
machine(other than add-in dll) and shall I have to set the registry
entries explicitly or the add-in register will add automatically).


Thanks in advance,


Regards,
VIsh

RE: Problem in deploying Outlook 2003 Add-in
Peter Hegelund 7/4/2006 10:12:02 AM
I have the same problem so let me describe it in a little more detail.

Two systems have the the Outlook Add-in installed.

One PC works fine, the other fails to load the Add-in with this text
"Load error. A runtime error occurred during loading of the COM Add-in"

Where may I find more information about the runtime error?

The systems have similar SW baselines

XP Pro SP2
..NET 2.0
Outlook 2003 SP2
VSTO 2005 runtime
Office 2003 PIA's

Another post suggested that I disabled CAS but this doesn't help.

Registry looks fine excpet of course the Add-in's Loadbehaviour is changed
from 3 to 2.

I do not have vish's problem locating the Add-in thru Advanced options|COM
Add-ins
but it is unchecked.

Regards
Peter
--
C -> C++ -> C# (sigh of relief)


"vish" wrote:

[Quoted Text]
> I have developed the add-in using Visual studio 2005 in C#.
>
>
> Outlook add-in is failing to load when Outlook starts on some machines.
>
> It works absolutely fine on some other machine. On problematic
> machines, some times the LoadBehavior is changing from 3 to 2 when
> oulook starts. I can't even find my Addin either in the Disabled list
> (Help_>About) or Tools->Options-Others->AdvancedOptions.
>

Re: Problem in deploying Outlook 2003 Add-in
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/5/2006 2:09:14 PM
Usually that happens if the addin is not fully trusted on the target
machine, something that's required and usually requires a custom installer
action.

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


"Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
news:43C2BE16-E4D0-43A6-97B3-014EC5A0D254[ at ]microsoft.com...
[Quoted Text]
>I have the same problem so let me describe it in a little more detail.
>
> Two systems have the the Outlook Add-in installed.
>
> One PC works fine, the other fails to load the Add-in with this text
> "Load error. A runtime error occurred during loading of the COM Add-in"
>
> Where may I find more information about the runtime error?
>
> The systems have similar SW baselines
>
> XP Pro SP2
> .NET 2.0
> Outlook 2003 SP2
> VSTO 2005 runtime
> Office 2003 PIA's
>
> Another post suggested that I disabled CAS but this doesn't help.
>
> Registry looks fine excpet of course the Add-in's Loadbehaviour is changed
> from 3 to 2.
>
> I do not have vish's problem locating the Add-in thru Advanced options|COM
> Add-ins
> but it is unchecked.
>
> Regards
> Peter
> --
> C -> C++ -> C# (sigh of relief)
>
>
> "vish" wrote:
>
>> I have developed the add-in using Visual studio 2005 in C#.
>>
>>
>> Outlook add-in is failing to load when Outlook starts on some machines.
>>
>> It works absolutely fine on some other machine. On problematic
>> machines, some times the LoadBehavior is changing from 3 to 2 when
>> oulook starts. I can't even find my Addin either in the Disabled list
>> (Help_>About) or Tools->Options-Others->AdvancedOptions.
>>
>

Re: Problem in deploying Outlook 2003 Add-in
"vish" <vish_hss[ at ]yahoo.co.in> 7/5/2006 11:36:13 PM
I found that add-in works on all the machines with visual studio
2003/2005 installed.
Am i missing any dlls on which outlook add-in dependens. (My test addin
is simple one line application, it pops up the Hello World message box
on startup).

Regards,
Vish


Ken Slovak - [MVP - Outlook] wrote:

[Quoted Text]
> Usually that happens if the addin is not fully trusted on the target
> machine, something that's required and usually requires a custom installer
> action.
>
> --
> 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
>
>
> "Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
> news:43C2BE16-E4D0-43A6-97B3-014EC5A0D254[ at ]microsoft.com...
> >I have the same problem so let me describe it in a little more detail.
> >
> > Two systems have the the Outlook Add-in installed.
> >
> > One PC works fine, the other fails to load the Add-in with this text
> > "Load error. A runtime error occurred during loading of the COM Add-in"
> >
> > Where may I find more information about the runtime error?
> >
> > The systems have similar SW baselines
> >
> > XP Pro SP2
> > .NET 2.0
> > Outlook 2003 SP2
> > VSTO 2005 runtime
> > Office 2003 PIA's
> >
> > Another post suggested that I disabled CAS but this doesn't help.
> >
> > Registry looks fine excpet of course the Add-in's Loadbehaviour is changed
> > from 3 to 2.
> >
> > I do not have vish's problem locating the Add-in thru Advanced options|COM
> > Add-ins
> > but it is unchecked.
> >
> > Regards
> > Peter
> > --
> > C -> C++ -> C# (sigh of relief)
> >
> >
> > "vish" wrote:
> >
> >> I have developed the add-in using Visual studio 2005 in C#.
> >>
> >>
> >> Outlook add-in is failing to load when Outlook starts on some machines.
> >>
> >> It works absolutely fine on some other machine. On problematic
> >> machines, some times the LoadBehavior is changing from 3 to 2 when
> >> oulook starts. I can't even find my Addin either in the Disabled list
> >> (Help_>About) or Tools->Options-Others->AdvancedOptions.
> >>
> >

Re: Problem in deploying Outlook 2003 Add-in
"vish" <vish_hss[ at ]yahoo.co.in> 7/6/2006 5:00:48 AM
Now I found that the add-in developed in visual studio 2003 works on
all the machine, but the add-in developed with visual studio 2005 works
only onsystems which have either visual studio 2003/2005 installed.
So, is there any specifi dependency for 2005 Add-in? ("other than
the .net 2 framework requirement.")


Regards,
VIsh


Sorry for multiple posts!!!
vish wrote:

[Quoted Text]
> I found that add-in works on all the machines with visual studio
> 2003/2005 installed.
> Am i missing any dlls on which outlook add-in dependens. (My test addin
> is simple one line application, it pops up the Hello World message box
> on startup).
>
> Regards,
> Vish
>
>
> Ken Slovak - [MVP - Outlook] wrote:
>
> > Usually that happens if the addin is not fully trusted on the target
> > machine, something that's required and usually requires a custom installer
> > action.
> >
> > --
> > 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
> >
> >
> > "Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
> > news:43C2BE16-E4D0-43A6-97B3-014EC5A0D254[ at ]microsoft.com...
> > >I have the same problem so let me describe it in a little more detail.
> > >
> > > Two systems have the the Outlook Add-in installed.
> > >
> > > One PC works fine, the other fails to load the Add-in with this text
> > > "Load error. A runtime error occurred during loading of the COM Add-in"
> > >
> > > Where may I find more information about the runtime error?
> > >
> > > The systems have similar SW baselines
> > >
> > > XP Pro SP2
> > > .NET 2.0
> > > Outlook 2003 SP2
> > > VSTO 2005 runtime
> > > Office 2003 PIA's
> > >
> > > Another post suggested that I disabled CAS but this doesn't help.
> > >
> > > Registry looks fine excpet of course the Add-in's Loadbehaviour is changed
> > > from 3 to 2.
> > >
> > > I do not have vish's problem locating the Add-in thru Advanced options|COM
> > > Add-ins
> > > but it is unchecked.
> > >
> > > Regards
> > > Peter
> > > --
> > > C -> C++ -> C# (sigh of relief)
> > >
> > >
> > > "vish" wrote:
> > >
> > >> I have developed the add-in using Visual studio 2005 in C#.
> > >>
> > >>
> > >> Outlook add-in is failing to load when Outlook starts on some machines.
> > >>
> > >> It works absolutely fine on some other machine. On problematic
> > >> machines, some times the LoadBehavior is changing from 3 to 2 when
> > >> oulook starts. I can't even find my Addin either in the Disabled list
> > >> (Help_>About) or Tools->Options-Others->AdvancedOptions.
> > >>
> > >

Re: Problem in deploying Outlook 2003 Add-in
Peter Hegelund 7/6/2006 7:23:01 AM
I am using a custom installer action. Code found on a Microsoft site and used
as is.
Without the customer install the add-in loads on neither mahcine A nor B.

CasPol.exe -s off
When you disable CAS as described above shouldn't it take care of trust
issues?

So, Ken, I hope that somewhere in the system there is more info to be had
Regards
--
C -> C++ -> C# (sigh of relief)


"Ken Slovak - [MVP - Outlook]" wrote:

[Quoted Text]
> Usually that happens if the addin is not fully trusted on the target
> machine, something that's required and usually requires a custom installer
> action.
>
> --
> 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
>
>
> "Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
> news:43C2BE16-E4D0-43A6-97B3-014EC5A0D254[ at ]microsoft.com...
> >I have the same problem so let me describe it in a little more detail.
> >
> > Two systems have the the Outlook Add-in installed.
> >
> > One PC works fine, the other fails to load the Add-in with this text
> > "Load error. A runtime error occurred during loading of the COM Add-in"
> >

> > --
> > C -> C++ -> C# (sigh of relief)
> >
> >
> > "vish" wrote:
> >
> >> I have developed the add-in using Visual studio 2005 in C#.
> >>
> >>
> >> Outlook add-in is failing to load when Outlook starts on some machines.
> >>
> >> It works absolutely fine on some other machine. On problematic
> >> machines, some times the LoadBehavior is changing from 3 to 2 when
> >> oulook starts. I can't even find my Addin either in the Disabled list
> >> (Help_>About) or Tools->Options-Others->AdvancedOptions.
> >>
> >
>
>
Re: Problem in deploying Outlook 2003 Add-in
Peter Hegelund 7/6/2006 7:29:01 AM
I concur with your observation.

The add-in works on two machines both of which have VS 2005.

The add-in fails to load on a third machine which has a similar baseline but
no Visual Studio.
This machine of course has been equipped with the 2003 Primary Interop
Assembiles and the VSTO runtime.

So what is the missing ingredient?

Regards
Peter

--
C -> C++ -> C# (sigh of relief)


"vish" wrote:

[Quoted Text]
> Now I found that the add-in developed in visual studio 2003 works on
> all the machine, but the add-in developed with visual studio 2005 works
> only onsystems which have either visual studio 2003/2005 installed.
> So, is there any specifi dependency for 2005 Add-in? ("other than
> the .net 2 framework requirement.")
>
>
> Regards,
> VIsh
>
>
> Sorry for multiple posts!!!
> vish wrote:
>
> > I found that add-in works on all the machines with visual studio
> > 2003/2005 installed.
> > Am i missing any dlls on which outlook add-in dependens. (My test addin
> > is simple one line application, it pops up the Hello World message box
> > on startup).
> >
> > Regards,
> > Vish
> >
> >
> > Ken Slovak - [MVP - Outlook] wrote:
> >
> > > Usually that happens if the addin is not fully trusted on the target
> > > machine, something that's required and usually requires a custom installer
> > > action.
> > >
> > > --
> > > 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
> > >
> > >
> > > "Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
> > > news:43C2BE16-E4D0-43A6-97B3-014EC5A0D254[ at ]microsoft.com...
> > > >I have the same problem so let me describe it in a little more detail.
> > > >
> > > > Two systems have the the Outlook Add-in installed.
> > > >
> > > > One PC works fine, the other fails to load the Add-in with this text
> > > > "Load error. A runtime error occurred during loading of the COM Add-in"
> > > >
> > > > Where may I find more information about the runtime error?
> > > >
> > > > The systems have similar SW baselines
> > > >
> > > > XP Pro SP2
> > > > .NET 2.0
> > > > Outlook 2003 SP2
> > > > VSTO 2005 runtime
> > > > Office 2003 PIA's
> > > >
> > > > Another post suggested that I disabled CAS but this doesn't help.
> > > >
> > > > Registry looks fine excpet of course the Add-in's Loadbehaviour is changed
> > > > from 3 to 2.
> > > >
> > > > I do not have vish's problem locating the Add-in thru Advanced options|COM
> > > > Add-ins
> > > > but it is unchecked.
> > > >
> > > > Regards
> > > > Peter
> > > > --

Re: Problem in deploying Outlook 2003 Add-in
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/6/2006 1:46:50 PM
I'm not enough of a .NET expert to be sure of that. I believe you need a
fully trusted assembly and that disabling the CAS security won't do the
trick, but I'm not positive. The lack of an automated solution you don't
have to hack around for is one of the reasons I don't do many .NET addins.

I'd review all the information about distributing .NET addins on
www.outlookcode.com and see what turns up.

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


"Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
news:3CDA23DB-17BD-4722-BCB0-9735C63B2ABA[ at ]microsoft.com...
[Quoted Text]
>I am using a custom installer action. Code found on a Microsoft site and
>used
> as is.
> Without the customer install the add-in loads on neither mahcine A nor B.
>
> CasPol.exe -s off
> When you disable CAS as described above shouldn't it take care of trust
> issues?
>
> So, Ken, I hope that somewhere in the system there is more info to be had
> Regards
> --
> C -> C++ -> C# (sigh of relief)

Re: Problem in deploying Outlook 2003 Add-in
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/6/2006 1:47:58 PM
Have you reviewed the dependencies for the project and made sure all are
either installation prerequisites or are included in the installation?

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


"Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
news:5B560433-944C-48B7-A94E-6227C7B378C5[ at ]microsoft.com...
[Quoted Text]
>I concur with your observation.
>
> The add-in works on two machines both of which have VS 2005.
>
> The add-in fails to load on a third machine which has a similar baseline
> but
> no Visual Studio.
> This machine of course has been equipped with the 2003 Primary Interop
> Assembiles and the VSTO runtime.
>
> So what is the missing ingredient?
>
> Regards
> Peter
>
> --
> C -> C++ -> C# (sigh of relief)
>
>
> "vish" wrote:
>
>> Now I found that the add-in developed in visual studio 2003 works on
>> all the machine, but the add-in developed with visual studio 2005 works
>> only onsystems which have either visual studio 2003/2005 installed.
>> So, is there any specifi dependency for 2005 Add-in? ("other than
>> the .net 2 framework requirement.")
>>
>>
>> Regards,
>> VIsh

Re: Problem in deploying Outlook 2003 Add-in
"vish" <vish_hss[ at ]yahoo.co.in> 7/6/2006 10:55:07 PM
Ken,
I have reviewed all the dependencies for the project and all are
included in the installation.

Regards,
Vish

Ken Slovak - [MVP - Outlook] wrote:

[Quoted Text]
> Have you reviewed the dependencies for the project and made sure all are
> either installation prerequisites or are included in the installation?
>
> --
> 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
>
>
> "Peter Hegelund" <peh[ at ]gammapartner.danmark> wrote in message
> news:5B560433-944C-48B7-A94E-6227C7B378C5[ at ]microsoft.com...
> >I concur with your observation.
> >
> > The add-in works on two machines both of which have VS 2005.
> >
> > The add-in fails to load on a third machine which has a similar baseline
> > but
> > no Visual Studio.
> > This machine of course has been equipped with the 2003 Primary Interop
> > Assembiles and the VSTO runtime.
> >
> > So what is the missing ingredient?
> >
> > Regards
> > Peter
> >
> > --
> > C -> C++ -> C# (sigh of relief)
> >
> >
> > "vish" wrote:
> >
> >> Now I found that the add-in developed in visual studio 2003 works on
> >> all the machine, but the add-in developed with visual studio 2005 works
> >> only onsystems which have either visual studio 2003/2005 installed.
> >> So, is there any specifi dependency for 2005 Add-in? ("other than
> >> the .net 2 framework requirement.")
> >>
> >>
> >> Regards,
> >> VIsh

Re: Problem in deploying Outlook 2003 Add-in
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/7/2006 2:10:23 PM
I'm not sure, see if any of the information at
http://kjellsj.blogspot.com/2005/06/outlook-2003-net-add-ins-with-vsto.html
helps 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


"vish" <vish_hss[ at ]yahoo.co.in> wrote in message
news:1152226507.552854.30530[ at ]s53g2000cws.googlegroups.com...
[Quoted Text]
> Ken,
> I have reviewed all the dependencies for the project and all are
> included in the installation.
>
> Regards,
> Vish

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net