
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
482
|
Chapter 8: Diagnostics
Information about the assembly-loading constraints for the AppDomain is also avail-
able, such as if the
AppDomain should probe the appbase or private bin path for assem-
blies when loading and what those paths are. It can be determined if the
AppDomain is
allowing binding redirection, if it is allowing code to be downloaded, if it uses a pub-
lisher policy, and where dynamically generated assemblies are stored by looking at
the
DisallowBindingRedirects, DisallowCodeDownload, DisallowPublisherPolicy, and
DynamicBase properties, respectively.
Console.WriteLine("\tAssembly loading parameters:");
Console.WriteLine("\t\tIs probing allowed in appbase and private bin path? : {0}",
!info.DisallowApplicationBaseProbing);
Console.WriteLine("\t\tPrivate Bin Path: {0}",
info.PrivateBinPath);
if (info.PrivateBinPathProbe != null)
{
if (info.PrivateBinPathProbe.Length > 0)
Console.WriteLine("\t\tExclude AppBase from search path");
else
Console.WriteLine("\t\tInclude AppBase in search path");
}
Console.WriteLine("\t\tIs binding redirection allowed?: {0}",
!info.DisallowBindingRedirects);
Console.WriteLine("\t\tIs code downloading allowed : {0}",
!info.DisallowCodeDownload);
Console.WriteLine("\t\tIs publisher policy used? : {0}",
!info.DisallowPublisherPolicy);
Console.WriteLine("\t\tDynamically ...