Typically, this behavior occurs if the following conditions are true:
- An assembly is executed by using the AppDomain object.
- The AppDomain object is created by using the AppDomainSetup object.
- The ConfigurationFile property for the AppDomainSetup object uses a URL that disallows anonymous access to the executed assembly.