58 instantiations of ConfigurationErrorsException
System.Configuration (13)
System\Configuration\ConfigurationElement.cs (5)
455ConfigurationErrorsException e = new ConfigurationErrorsException(errorsList); 1346throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture, format, attribToLockTrim, sb.ToString()), value.SourceInfo.FileName, value.SourceInfo.LineNumber); 1348throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture, format, attribToLockTrim, sb.ToString())); 1563throw new ConfigurationErrorsException(e.Message, reader); // give it some info 1711ce = new ConfigurationErrorsException(ce.Message, reader);
System\Configuration\ConfigurationErrorsException.cs (1)
287ConfigurationErrorsException e = new ConfigurationErrorsException(BareMessage, base.InnerException, _firstFilename, _firstLine);
System\Configuration\ConfigurationSchemaErrors.cs (2)
107throw new ConfigurationErrorsException(_errorsGlobal); 111throw new ConfigurationErrorsException(_errorsAll);
System\Configuration\ErrorsHelper.cs (1)
62return new ConfigurationErrorsException(errors);
System\Configuration\ExceptionUtil.cs (2)
66return new ConfigurationErrorsException(deprecatedException); 78return new ConfigurationErrorsException(xe.Message, xe, filename, line);
System\Configuration\MgmtConfigurationRecord.cs (1)
3093throw new ConfigurationErrorsException();
System\Configuration\SectionRecord.cs (1)
417throw new ConfigurationErrorsException(GetAllErrors());
System.Data (2)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
169ConfigurationException e = new ConfigurationErrorsException(message); 174ConfigurationException e = new ConfigurationErrorsException(message, node);
System.IdentityModel (1)
System\IdentityModel\DiagnosticUtilityExtensions.cs (1)
109return ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(
System.ServiceModel (1)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
191throw FxTrace.Exception.AsError(new ConfigurationErrorsException(ex.Message, ex));
System.ServiceModel.Web (4)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (1)
271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (2)
90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException( 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(
System\ServiceModel\WebHttpBinding.cs (1)
235throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(
System.Transactions (2)
System\Transactions\Configuration\DefaultSettingsSection.cs (1)
32throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture,
System\Transactions\Configuration\MachineSettingsSection.cs (1)
23throw new ConfigurationErrorsException(string.Format(CultureInfo.CurrentCulture,
System.Web (27)
Compilation\CompilationUtil.cs (1)
362throw new ConfigurationErrorsException(errorString, file, line);
Configuration\CompilationSection.cs (1)
825throw new ConfigurationErrorsException(Message, e, source, lineNumber);
Configuration\ConfigUtil.cs (4)
47throw new ConfigurationErrorsException(e.Message, e, node); 51throw new ConfigurationErrorsException(e.Message, e, 56throw new ConfigurationErrorsException(e.Message, e); 120return new ConfigurationErrorsException(message, innerException, (configProperty != null) ? configProperty.Source : null, (configProperty != null) ? configProperty.LineNumber : 0);
Configuration\ErrorRuntimeConfig.cs (8)
20throw new ConfigurationErrorsException(); 32throw new ConfigurationErrorsException(); 38throw new ConfigurationErrorsException(); 49throw new ConfigurationErrorsException(); 53throw new ConfigurationErrorsException(); 57throw new ConfigurationErrorsException(); 61throw new ConfigurationErrorsException(); 65throw new ConfigurationErrorsException();
Configuration\HealthMonitoringSectionHelper.cs (1)
557throw new ConfigurationErrorsException(e.Message, providerSettings.ElementInformation.Properties["type"].Source,
Configuration\HttpCapabilitiesBase.cs (1)
480ConfigurationErrorsException configEx = new ConfigurationErrorsException(message, e);
Configuration\HttpCapabilitiesSectionHandler.cs (1)
154throw new ConfigurationErrorsException(e.Message, e, element);
Configuration\HttpModuleAction.cs (1)
113throw new ConfigurationErrorsException(ex.Message,
Configuration\PagesSection.cs (2)
481throw new ConfigurationErrorsException(ex.Message, ex, 727throw new ConfigurationErrorsException(e.Message, e,
Configuration\ProtocolsConfigurationEntry.cs (2)
64throw new ConfigurationErrorsException(e.Message, e, _configFileName, _configFileLine); 75throw new ConfigurationErrorsException(e.Message, e, _configFileName, _configFileLine);
Configuration\ProtocolsSection.cs (2)
270throw new ConfigurationErrorsException( 285throw new ConfigurationErrorsException(
Configuration\ProvidersHelper.cs (2)
45throw new ConfigurationErrorsException(e.Message, e, providerSettings.ElementInformation.Properties["type"].Source, providerSettings.ElementInformation.Properties["type"].LineNumber); 76throw new ConfigurationErrorsException(e.Message, e);
Hosting\ProcessHost.cs (1)
385throw new ConfigurationErrorsException(
System.Web.Mobile (8)
Mobile\ConfigurationSectionHelper.cs (3)
43throw new ConfigurationErrorsException(msg, _currentNode); 62throw new ConfigurationErrorsException(msg, _currentNode); 138throw new ConfigurationErrorsException(msg, _currentNode);
Mobile\MobileDeviceCapabilitiesSectionHandler.cs (5)
108throw new ConfigurationErrorsException(msg, child); 119throw new ConfigurationErrorsException(msg, child); 135throw new ConfigurationErrorsException(msg, child); 170throw new ConfigurationErrorsException(msg, child); 178throw new ConfigurationErrorsException(msg, child);
62 references to ConfigurationErrorsException
ComSvcConfig (1)
EndpointConfigContainer.cs (1)
494catch (System.Configuration.ConfigurationErrorsException e)
PresentationCore (1)
Core\CSharp\System\Windows\CoreCompatibilityPreferences.cs (1)
21catch (ConfigurationErrorsException)
PresentationFramework (1)
src\Framework\System\Windows\FrameworkCompatibilityPreferences.cs (1)
23catch (ConfigurationErrorsException)
SMDiagnostics (1)
System\ServiceModel\Diagnostics\LegacyDiagnosticTrace.cs (1)
69catch (ConfigurationErrorsException)
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
54catch (ConfigurationErrorsException err)
System.ComponentModel.DataAnnotations (1)
DataAnnotations\AppSettings.cs (1)
29catch (ConfigurationErrorsException) { }
System.Configuration (22)
System\Configuration\BaseConfigurationRecord.cs (4)
2270string safeFilename = ConfigurationErrorsException.AlwaysSafeFilename(((IConfigErrorInfo)xmlUtil).Filename); 2285ConfigurationErrorsException ce; 3344catch (ConfigurationErrorsException ce) { 3567catch (ConfigurationErrorsException ce) {
System\Configuration\ConfigurationElement.cs (2)
446internal ConfigurationErrorsException GetErrors() { 455ConfigurationErrorsException e = new ConfigurationErrorsException(errorsList);
System\Configuration\ConfigurationErrorsException.cs (2)
192( currentExceptionType != typeof( ConfigurationErrorsException ) ) ) { 287ConfigurationErrorsException e = new ConfigurationErrorsException(BareMessage, base.InnerException, _firstFilename, _firstLine);
System\Configuration\ErrorsHelper.cs (4)
30ConfigurationErrorsException ce = e as ConfigurationErrorsException; 56static internal ConfigurationErrorsException GetErrorsException(List<ConfigurationException> errors) { 66ConfigurationErrorsException e = GetErrorsException(errors);
System\Configuration\ExceptionUtil.cs (4)
39static internal ConfigurationErrorsException WrapAsConfigException(string outerMessage, Exception e, IConfigErrorInfo errorInfo) { 48static internal ConfigurationErrorsException WrapAsConfigException(string outerMessage, Exception e, string filename, int line) { 52ConfigurationErrorsException ce = e as ConfigurationErrorsException;
System\Configuration\RuntimeConfigurationRecord.cs (1)
241ConfigurationErrorsException errors = configSection.GetErrors();
System\Configuration\XmlUtil.cs (5)
295ConfigurationErrorsException ex = new ConfigurationErrorsException( 303ConfigurationErrorsException ex = new ConfigurationErrorsException( 311ConfigurationErrorsException ex = new ConfigurationErrorsException( 319ConfigurationErrorsException ex = new ConfigurationErrorsException( 359ConfigurationErrorsException ex = new ConfigurationErrorsException(
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
54} catch (ConfigurationErrorsException e) {
System.IdentityModel (1)
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
71if (inner is ConfigurationErrorsException || Fx.IsFatal(inner))
System.Runtime.Serialization (1)
System\Runtime\Serialization\AppSettings.cs (1)
46catch (ConfigurationErrorsException)
System.ServiceModel (6)
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (1)
290catch (System.Configuration.ConfigurationErrorsException)
System\ServiceModel\Configuration\ConfigurationHelpers.cs (2)
318catch (ConfigurationErrorsException) 336catch (ConfigurationErrorsException)
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
327catch (ConfigurationErrorsException e)
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
746catch (System.Configuration.ConfigurationErrorsException)
System\ServiceModel\ServiceModelAppSettings.cs (1)
138catch (ConfigurationErrorsException)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\Configuration\AppSettings.cs (1)
44catch (ConfigurationErrorsException)
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Tracking\DefaultProfileManager.cs (1)
115catch (ConfigurationErrorsException e)
System.ServiceModel.Web (1)
System\ServiceModel\Configuration\AppSettings.cs (1)
56catch (ConfigurationErrorsException)
System.Transactions (2)
System\Transactions\Configuration\AppSettings.cs (1)
68catch (ConfigurationErrorsException)
System\Transactions\Trace\DiagnosticTrace.cs (1)
256catch (System.Configuration.ConfigurationErrorsException)
System.Web (16)
Configuration\ConfigUtil.cs (2)
119internal static ConfigurationErrorsException MakeConfigurationErrorsException(string message, Exception innerException = null, PropertyInformation configProperty = null) { 136catch (ConfigurationErrorsException) {
Configuration\HealthMonitoringSectionHelper.cs (1)
553catch (ConfigurationErrorsException) {
Configuration\HttpCapabilitiesBase.cs (1)
480ConfigurationErrorsException configEx = new ConfigurationErrorsException(message, e);
Configuration\HttpCapabilitiesSectionHandler.cs (3)
308configurationDirectory = Path.GetDirectoryName(ConfigurationErrorsException.GetFilename(srcAttribute)); 397int lineNumber = ConfigurationErrorsException.GetLineNumber(node); 425ConfigurationErrorsException.GetFilename(node),
Configuration\ProtocolsConfiguration.cs (2)
67ConfigurationErrorsException.GetFilename(child), 68ConfigurationErrorsException.GetLineNumber(child));
ErrorFormatter.cs (2)
454ConfigurationErrorsException configErrors = Exception as ConfigurationErrorsException;
HttpResponse.cs (2)
1302ConfigurationErrorsException errors = e as ConfigurationErrorsException;
Management\regiisutil.cs (3)
205if (exception is ConfigurationErrorsException) { 206foreach(ConfigurationErrorsException e in ((ConfigurationErrorsException)exception).Errors) {
System.Xaml.Hosting (4)
System\Xaml\Hosting\Configuration\XamlHostingConfiguration.cs (1)
26ConfigurationErrorsException configException = new ConfigurationErrorsException(SR.ConfigSectionNotFound);
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (3)
171[Fx.Tag.Throws(typeof(ConfigurationErrorsException), "Invalid Configuration.")] 239ConfigurationErrorsException configException; 308throw FxTrace.Exception.AsError((ConfigurationErrorsException)this.cachedResult);