Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

No exceptions of the ConfigurationException type are thrown when you run a .NET Framework 2.0-based application


View products that this article applies to.

Symptoms

When you run a Microsoft .NET Framework 2.0-based application, you may notice that no exceptions of the ConfigurationException type are thrown. This behavior occurs even if the .config file is missing or if the .config file contains configuration settings that are not valid.

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.

↑ Back to the top


Cause

This behavior occurs because the configuration system in the .NET Framework 2.0 ignores errors when the configuration system loads .config files over the network. This behavior prevents a malicious user from acquiring detailed information in exceptions.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

↑ Back to the top


Keywords: KB911719, kbprb, kbtshoot, kbinfo, kbprogramming

↑ Back to the top

Article Info
Article ID : 911719
Revision : 2
Created on : 2/23/2007
Published on : 2/23/2007
Exists online : False
Views : 440