Slightly OT: Outlook add-in

Slightly OT: Outlook add-in

Old forum URL: forums.lhotka.net/forums/t/500.aspx


ajj3085 posted on Wednesday, June 28, 2006

Hi all,

I'm creating an Outlook add-in, which will use my business layer to carry out some work.

The problem I'm running into is that the add-in doesn't seem to able to use the assemblies because they are signed (and require full trust).  The exact message is "That assembly does not allow partially trusted callers. "

Trusting the assembly also doesn't seem to work.

Any ideas?
Thanks
Andy

ajj3085 replied on Wednesday, June 28, 2006

Some more info..

My assembly seems to load fine, but its getting a security exection when calling the  System.Configuration.ConfigurationManager.GetSection method.

The section however is read by a custom section handler (defined in the same assembly as the one doing the call above).  So for some reason, my assembly loads, but the CLR can't create an object from that assembly.. wierd.

Andy

RockfordLhotka replied on Wednesday, June 28, 2006

There is an attribute called something like AllowPartiallyTrustedCallers, which is important to use when building objects that might be loaded in IE. This may be a requirement for Outlook too.

ajj3085 replied on Thursday, June 29, 2006

Well, that worked.

I was very suprised though, because the assembly I marked with the attribute WAS loading and executing code, so I was suprised that calling that method would trigger the message.

Thanks!

Copyright (c) Marimer LLC