Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: runtime error occurred during the loading...blah blah blah

Geek News

runtime error occurred during the loading...blah blah blah
"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> 7/21/2006 10:31:05 PM
OK, so I have looked through this listserv. I have read Randy Byrne's
article. I have tried using a shim. I have contacted Microsoft (have
a nice weekend, they tell me...sheesh!). I cannot find the answer to
save my life.

I am getting the runtime error message when I try to load a .NET
add-in. I modeled my add-in after Randy's (thanks for that, Randy)
odc_oladdin. I can get the addin to run when I install it by right
clicking on the setup file in VB.NET and then pressing F5 to debug the
code...everything works fabulously that way.

The problem happens if I DON'T press F5 and just open Outlook. The
registry key turns from a 3 to a 2 and i get the load error. Funny
thing is that the same thing happens with Randy's original addin too...

Any help would be appreciated!

Mike

Re: runtime error occurred during the loading...blah blah blah
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/24/2006 1:01:05 PM
Is your assembly (and Randy's) set to be trusted?

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


"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> wrote in message
news:1153521065.218418.49900[ at ]i3g2000cwc.googlegroups.com...
[Quoted Text]
> OK, so I have looked through this listserv. I have read Randy Byrne's
> article. I have tried using a shim. I have contacted Microsoft (have
> a nice weekend, they tell me...sheesh!). I cannot find the answer to
> save my life.
>
> I am getting the runtime error message when I try to load a .NET
> add-in. I modeled my add-in after Randy's (thanks for that, Randy)
> odc_oladdin. I can get the addin to run when I install it by right
> clicking on the setup file in VB.NET and then pressing F5 to debug the
> code...everything works fabulously that way.
>
> The problem happens if I DON'T press F5 and just open Outlook. The
> registry key turns from a 3 to a 2 and i get the load error. Funny
> thing is that the same thing happens with Randy's original addin too...
>
> Any help would be appreciated!
>
> Mike
>

Re: runtime error occurred during the loading...blah blah blah
"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> 7/24/2006 3:39:41 PM
Sure is. Everything on the second tab is wide open.


Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> Is your assembly (and Randy's) set to be trusted?
>
> --
> 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
>
>
> "got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> wrote in message
> news:1153521065.218418.49900[ at ]i3g2000cwc.googlegroups.com...
> > OK, so I have looked through this listserv. I have read Randy Byrne's
> > article. I have tried using a shim. I have contacted Microsoft (have
> > a nice weekend, they tell me...sheesh!). I cannot find the answer to
> > save my life.
> >
> > I am getting the runtime error message when I try to load a .NET
> > add-in. I modeled my add-in after Randy's (thanks for that, Randy)
> > odc_oladdin. I can get the addin to run when I install it by right
> > clicking on the setup file in VB.NET and then pressing F5 to debug the
> > code...everything works fabulously that way.
> >
> > The problem happens if I DON'T press F5 and just open Outlook. The
> > registry key turns from a 3 to a 2 and i get the load error. Funny
> > thing is that the same thing happens with Randy's original addin too...
> >
> > Any help would be appreciated!
> >
> > Mike
> >

Re: runtime error occurred during the loading...blah blah blah
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 7/25/2006 2:03:34 PM
No, I mean CAS security for the assembly.

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


"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> wrote in message
news:1153755581.936145.58540[ at ]h48g2000cwc.googlegroups.com...
[Quoted Text]
> Sure is. Everything on the second tab is wide open.

Re: runtime error occurred during the loading...blah blah blah
"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> 7/25/2006 2:45:02 PM
Not sure what you mean by CAS security.

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> No, I mean CAS security for the assembly.
>
> --
> 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
>
>
> "got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> wrote in message
> news:1153755581.936145.58540[ at ]h48g2000cwc.googlegroups.com...
> > Sure is. Everything on the second tab is wide open.

Re: runtime error occurred during the loading...blah blah blah
Peter Hegelund 7/26/2006 8:35:02 AM
I think that Ken means that you should convince yourself that the add-in has
been given proper permissions.

So start the .NET Framework 2.0 Configuration applet which incidentially is
*not* bundled with the 2.0 redist!
Get it by downloading the SDK.

Open My Computer|Runtime Security Policy|User|Code Groups|All_Code

You should now the add-in two levels below All_Code and see this

"Assemblies matching the membership condition are granted this permission
set at the current policy level: FullTrust.

Permission Set Description:
Allows full access to all resources"

Mind you, my add-in has been deployed to three PC's and it still doesn't
work on all three so something besides CAS is in play.

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


"got2bmvp" wrote:

[Quoted Text]
> Not sure what you mean by CAS security.
>
> Ken Slovak - [MVP - Outlook] wrote:
> > No, I mean CAS security for the assembly.
> >
> > --
> > 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
> >
> >
> > "got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> wrote in message
> > news:1153755581.936145.58540[ at ]h48g2000cwc.googlegroups.com...
> > > Sure is. Everything on the second tab is wide open.
>
>
Re: runtime error occurred during the loading...blah blah blah
michael[ at ]catsoft.ch 7/26/2006 12:47:25 PM
Hi there, i got the same problem with a word add-in... did u use VSTO
for your outlook add-in?

Re: runtime error occurred during the loading...blah blah blah
"got2bmvp" <mmastejulia[ at ]mayerbrownrowe.com> 7/26/2006 4:04:08 PM
I'm actually using VS 2003 and Outlook 2002 (so no VSTO)

michael[ at ]catsoft.ch wrote:
[Quoted Text]
> Hi there, i got the same problem with a word add-in... did u use VSTO
> for your outlook add-in?

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