• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Less verbose [System.Reflection.Assembly]::LoadFrom() ?

#1
A newbie question..

When I invoke [System.Reflection.Assembly]::LoadFrom() to load an assembly
(Ionic.Zip.dll in this case) I get a ton of verbose "Evidence" output on the
cmd line. Basically in an XML element called <RawData>... goes on and on.

I understand this has to do with the security and permissions setting for
the assembly. I'm wondering if I can suppress this output and perhaps speed
things up.

Many thanks for your help!

RCN
 

My Computer

M

Mike Pfeiffer

#2
[void] [System.Reflection.Assembly]::LoadFrom("c:\Ionic.Zip.dll")

or

[System.Reflection.Assembly]::LoadFrom("c:\Ionic.Zip.dll") | Out-Null

"RCN" wrote:

> A newbie question..
>
> When I invoke [System.Reflection.Assembly]::LoadFrom() to load an assembly
> (Ionic.Zip.dll in this case) I get a ton of verbose "Evidence" output on the
> cmd line. Basically in an XML element called <RawData>... goes on and on.
>
> I understand this has to do with the security and permissions setting for
> the assembly. I'm wondering if I can suppress this output and perhaps speed
> things up.
>
> Many thanks for your help!
>
> RCN
 

My Computer

#3
Perfect! Thanks Mike.

"Mike Pfeiffer" wrote:

> [void] [System.Reflection.Assembly]::LoadFrom("c:\Ionic.Zip.dll")
>
> or
>
> [System.Reflection.Assembly]::LoadFrom("c:\Ionic.Zip.dll") | Out-Null
>
> "RCN" wrote:
>

> > A newbie question..
> >
> > When I invoke [System.Reflection.Assembly]::LoadFrom() to load an assembly
> > (Ionic.Zip.dll in this case) I get a ton of verbose "Evidence" output on the
> > cmd line. Basically in an XML element called <RawData>... goes on and on.
> >
> > I understand this has to do with the security and permissions setting for
> > the assembly. I'm wondering if I can suppress this output and perhaps speed
> > things up.
> >
> > Many thanks for your help!
> >
> > RCN
 

My Computer