Home All Groups Group Topic Archive Search About

interop assembly requiring full trust

Author
6 Oct 2006 2:57 PM
fridmada
Hello all,

I've published application with partial trust option. When I'm installing it
I haven't any problem, but when I try to run it, I've failed with warning
message "Warning MSB3183: Reference "Interop. Microsoft.Office.Core.dll" is
an interop assembly requiring full trust". The same for Interop.Outlook.dll,
Interop.VBIDE.dll, Interop.Word.dll and stdole.dll.
The application is not Office related. More of this, I can't attached to
process for debuging purposes.
I do not want to give full trust permissions for application.
How can I resolve it please?

Author
9 Oct 2006 10:04 PM
Nicole Calinoiu
If a strongly named assembly is not marked with AllowPartiallyTrustedCallers
attribute, you can't make any direct calls into it from a partially trusted
assembly.  You would either need to run your entire application in full
trust or use a fully trusted assembly to broker calls into these library
assemblies.


Show quoteHide quote
"fridmada" <fridm***@discussions.microsoft.com> wrote in message
news:E8E457B8-222E-493F-A485-46A386EC2387@microsoft.com...
> Hello all,
>
> I've published application with partial trust option. When I'm installing
> it
> I haven't any problem, but when I try to run it, I've failed with warning
> message "Warning MSB3183: Reference "Interop. Microsoft.Office.Core.dll"
> is
> an interop assembly requiring full trust". The same for
> Interop.Outlook.dll,
> Interop.VBIDE.dll, Interop.Word.dll and stdole.dll.
> The application is not Office related. More of this, I can't attached to
> process for debuging purposes.
> I do not want to give full trust permissions for application.
> How can I resolve it please?
Author
13 Oct 2006 7:22 PM
fridmada
Thank you, Nicole!

Show quoteHide quote
"Nicole Calinoiu" wrote:

> If a strongly named assembly is not marked with AllowPartiallyTrustedCallers
> attribute, you can't make any direct calls into it from a partially trusted
> assembly.  You would either need to run your entire application in full
> trust or use a fully trusted assembly to broker calls into these library
> assemblies.
>
>
> "fridmada" <fridm***@discussions.microsoft.com> wrote in message
> news:E8E457B8-222E-493F-A485-46A386EC2387@microsoft.com...
> > Hello all,
> >
> > I've published application with partial trust option. When I'm installing
> > it
> > I haven't any problem, but when I try to run it, I've failed with warning
> > message "Warning MSB3183: Reference "Interop. Microsoft.Office.Core.dll"
> > is
> > an interop assembly requiring full trust". The same for
> > Interop.Outlook.dll,
> > Interop.VBIDE.dll, Interop.Word.dll and stdole.dll.
> > The application is not Office related. More of this, I can't attached to
> > process for debuging purposes.
> > I do not want to give full trust permissions for application.
> > How can I resolve it please?
>