Why is DotNetZip medium trust (would like to know)

Oct 9, 2009 at 12:04 PM

You mention that your library is medium trust, so it can be used in most environments.

Could you explain why it is not full trust? (but can work inside SQLServer... good job!)

Coordinator
Oct 9, 2009 at 4:36 PM

It is not the DLL that is medium trust.  It is the execution environment (such as ASPNET) in some hosting setups.

DotNetZip is marked with the AllowPartiallyTrustedCallerAttribute (APTCA) which allows strong-named assemblies to be called by partially trusted code.

You can read more about how it works here: http://msdn.microsoft.com/en-us/library/system.security.allowpartiallytrustedcallersattribute.aspx

 

 

Oct 10, 2009 at 11:45 AM

Thanks for the information.