Implemented interface member:
property
InnerException
System.Runtime.InteropServices._Exception.InnerException
473 references to InnerException
ComSvcConfig (9)
ComplusTypeValidator.cs (4)
106string exceptionMessage = SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message); 183ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message)); 233ToolConsole.WriteError(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message), ""); 235ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message));
SvcFileManager.cs (1)
222throw e.InnerException;
ToolConsole.cs (4)
59if (e.InnerException != null) 60WriteError(e.InnerException, " "); 66if (e.InnerException != null) 67WriteError(e.InnerException, " ");
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Utilities.cs (1)
43ex = ex.InnerException;
mscorlib (15)
system\AggregateException.cs (1)
317back = back.InnerException;
system\badimageformatexception.cs (2)
91if (InnerException != null) 92s = s + " ---> " + InnerException.ToString();
system\exception.cs (2)
251Exception inner = InnerException; 256inner = inner.InnerException;
system\io\fileloadexception.cs (2)
105if (InnerException != null) 106s = s + " ---> " + InnerException.ToString();
system\io\filenotfoundexception.cs (2)
92if (InnerException != null) 93s = s + " ---> " + InnerException.ToString();
system\rttype.cs (1)
5656throw e.InnerException;
system\runtime\interopservices\comexception.cs (1)
77Exception _innerException = InnerException;
system\runtime\interopservices\externalexception.cs (1)
68Exception _innerException = InnerException;
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
68throw e.InnerException;
system\runtime\remoting\configuration.cs (1)
365Exception inner = e.InnerException as FileNotFoundException;
system\runtime\remoting\remotingsurrogateselector.cs (1)
345ex = ex.InnerException;
PresentationBuildTasks (12)
Base\MS\Internal\CriticalExceptions.cs (2)
55while (ex.InnerException != null && 59ex = ex.InnerException;
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (1)
332e = e.InnerException;
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (2)
345while (e.InnerException != null) 347Exception eInner = e.InnerException;
Framework\System\Windows\Markup\BamlRecordWriter.cs (1)
100_xamlTypeMapper.ThrowExceptionWithLine(e.Message, e.InnerException);
Framework\System\Windows\Markup\XAMLParseException.cs (2)
477if (innerException is TargetInvocationException && innerException.InnerException is XamlParseException) 479xamlParseException = (XamlParseException)innerException.InnerException;
Framework\System\Windows\Markup\XamlParser.cs (2)
215if (e is TargetInvocationException && e.InnerException is XamlParseException) 217throw e.InnerException;
Framework\System\Windows\Markup\XamlReaderHelper.cs (2)
1409if (innerException is TargetInvocationException && innerException.InnerException is XamlParseException) 1411parseException = innerException.InnerException as XamlParseException;
PresentationFramework (20)
src\Framework\MS\Internal\PtsHost\Pts.cs (7)
146innerException = exception.InnerException; 284get { return InnerException.HelpLink; } 285set { InnerException.HelpLink = value; } 290get { return InnerException.Message; } 295get { return InnerException.Source; } 296set { InnerException.Source = value; } 301get { return InnerException.StackTrace; }
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (2)
77catch (TargetInvocationException tiex) when (tiex.InnerException is ArgumentException) 141catch (TargetInvocationException tex) when (tex.InnerException?.HResult == E_BOUNDS)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (6)
1587e = tie.InnerException; 2536e = tie.InnerException; 2711e = tie.InnerException; 2953e = tie.InnerException; 3780e = tie.InnerException; 3920e = tie.InnerException;
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (1)
100_xamlTypeMapper.ThrowExceptionWithLine(e.Message, e.InnerException);
src\Framework\System\Windows\Markup\XamlParseException.cs (2)
477if (innerException is TargetInvocationException && innerException.InnerException is XamlParseException) 479xamlParseException = (XamlParseException)innerException.InnerException;
src\Framework\System\Windows\Markup\XamlReader.cs (2)
418Exception baseException = (e.InnerException == null) ? e : e.InnerException;
System (15)
compmod\system\componentmodel\LicenseManager.cs (1)
129throw e.InnerException;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
956t = t.InnerException; 1152if (t is TargetInvocationException && t.InnerException != null) { 1154throw t.InnerException;
compmod\system\diagnostics\traceutils.cs (4)
86Debug.Assert(tiexc.InnerException != null, "ill-formed TargetInvocationException!"); 87innerException = tiexc.InnerException; 99Debug.Assert(tiexc.InnerException != null, "ill-formed TargetInvocationException!"); 100innerException = tiexc.InnerException;
net\System\Net\_Connection.cs (1)
3371SocketException socketException = exception.InnerException as SocketException;
net\System\Net\_ConnectStream.cs (1)
1431Win32Exception win32Exception = exception.InnerException as Win32Exception;
net\System\Net\FtpWebRequest.cs (2)
1128IOException ioEx = webException.InnerException as IOException; 1130SocketException sEx = ioEx.InnerException as SocketException;
net\System\Net\Internal.cs (2)
868if (exception.InnerException==null) { 871return exception.Message + " (" + ExceptionMessage(exception.InnerException) + ")";
net\System\Net\WebSockets\WebSocketBase.cs (1)
1343socketException = exception.InnerException as SocketException;
System.Activities (13)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (4)
166SourceExpressionException se = e.InnerException as SourceExpressionException; 174throw FxTrace.Exception.AsError(e.InnerException); 298SourceExpressionException se = e.InnerException as SourceExpressionException; 306throw FxTrace.Exception.AsError(e.InnerException);
System\Activities\Expressions\AssemblyReference.cs (2)
272(((TargetInvocationException)ex).InnerException is FileNotFoundException || 273((TargetInvocationException)ex).InnerException is FileNotFoundException)))
System\Activities\Expressions\ExpressionServices.cs (5)
262throw FxTrace.Exception.AsError(e.InnerException); 784throw FxTrace.Exception.AsError(e.InnerException); 968throw FxTrace.Exception.AsError(e.InnerException); 1028throw FxTrace.Exception.AsError(e.InnerException); 1091throw FxTrace.Exception.AsError(e.InnerException);
System\Activities\Hosting\WorkflowInstance.cs (2)
628if (reason.InnerException != null) 630message = SR.WorkflowAbortedReason(reason.Message, reason.InnerException.Message);
System.Activities.Core.Presentation (3)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (3)
92if (e.InnerException != null) 94throw new InvalidOperationException(e.Message + Environment.NewLine + Environment.NewLine + e.InnerException.GetType().ToString() + Environment.NewLine + e.InnerException.Message, e);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\TestVersionAndRunAsyncResult.cs (2)
96while (!(currentException is SqlException) && currentException.InnerException != null) 98currentException = currentException.InnerException;
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegatePresenter.cs (2)
180if (ex is TargetInvocationException && ex.InnerException != null) 182details = ex.InnerException.Message;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
91return (e.InnerException != null) ? e.InnerException.ToString() : e.Message;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
447if (ex is TargetInvocationException && ex.InnerException != null) 449details = ex.InnerException.Message;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
507if (exception.InnerException is ArgumentException)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
1571if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException) 1574ErrorReporting.ShowErrorMessage((err.InnerException ?? err).Message);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
150Exception ex = e.Exception.InnerException ?? e.Exception;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1553if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException)
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
121if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException) 123throw FxTrace.Exception.AsError( err.InnerException ?? err );
System.ComponentModel.DataAnnotations (2)
DataAnnotations\CustomValidationAttribute.cs (2)
164if (tie.InnerException != null) { 165throw tie.InnerException;
System.Configuration (2)
System\Configuration\ConfigurationErrorsException.cs (2)
133return e.InnerException; 287ConfigurationErrorsException e = new ConfigurationErrorsException(BareMessage, base.InnerException, _firstFilename, _firstLine);
System.Data (51)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\ExceptionUtility.cs (1)
24exception = exception.InnerException;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegatePresenter.cs (2)
180if (ex is TargetInvocationException && ex.InnerException != null) 182details = ex.InnerException.Message;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
91return (e.InnerException != null) ? e.InnerException.ToString() : e.Message;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
447if (ex is TargetInvocationException && ex.InnerException != null) 449details = ex.InnerException.Message;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
507if (exception.InnerException is ArgumentException)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
1571if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException) 1574ErrorReporting.ShowErrorMessage((err.InnerException ?? err).Message);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1553if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
121if (err is TargetInvocationException && err.InnerException is ValidationException || err is ValidationException) 123throw FxTrace.Exception.AsError( err.InnerException ?? err );
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
276retry.TrySetException(task.Exception.InnerException);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
521throw t.Exception.InnerException; 764throw t.Exception.InnerException; 2496source.SetException(task.Exception.InnerException);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (12)
1377throw completionTask.Exception.InnerException; 1449throw asyncException.InnerException; 1874throw asyncException.InnerException; 2080throw asyncException.InnerException; 2213globalCompletion.TrySetException(tsk.Exception.InnerException); 2276globalCompletion.TrySetException(retryTsk.Exception.InnerException); 2428Exception e = t.Exception.InnerException; 2451throw result.Exception.InnerException; 2492Exception e = t.Exception.InnerException; 2520source.SetException(executeTask.Exception.InnerException); 2532source.SetException(readTask.Exception.InnerException); 2596Exception e = t.Exception.InnerException;
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1476Exception e = retryTask.Exception.InnerException; 1479_result.SetException(retryTask.Exception.InnerException);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
4579exceptionSource.TrySetException(retryTask.Exception.InnerException); 4638source.TrySetException(e.InnerException); 4663Exception e = task.Exception.InnerException;
fx\src\data\System\Data\SqlClient\SqlException.cs (1)
187SqlException exception = new SqlException(Message, _errors, InnerException, _clientConnectionId);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (4)
147throw ex.InnerException; 227if (t.Exception.InnerException is SqlException) 230completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 234completion.SetException(t.Exception.InnerException);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (3)
212if (t.Exception.InnerException is SqlException) 215completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 219completion.SetException(t.Exception.InnerException);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (4)
63Exception exc = tsk.Exception.InnerException; 159ExceptionDispatchInfo.Capture(ae.InnerException).Throw(); 1291Exception exceptionToInclude = (null != e.InnerException) ? e.InnerException : e;
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
8008FailureCleanup(stateObj, t.Exception.InnerException); 8009throw t.Exception.InnerException; 8692Exception exc = tsk.Exception.InnerException; 10497throw task.Exception.InnerException;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
2905throw ae.InnerException;
System.Data.Entity (5)
System\Data\Metadata\StoreItemCollection.Loader.cs (3)
211if (provEx.InnerException != null && !string.IsNullOrEmpty(provEx.InnerException.Message)) 213message.AppendFormat(" {0}", provEx.InnerException.Message);
System\Data\Objects\ELinq\Funcletizer.cs (2)
652throw e.InnerException; 745throw ex.InnerException;
System.Data.Entity.Design (4)
System\Data\Entity\Design\Common\EDesignUtil.cs (2)
28for (Exception inner = e.InnerException; inner != null; inner = inner.InnerException)
System\Data\Entity\Design\EntityCodeGenerator.cs (2)
659Exception actual = e.InnerException != null ? e.InnerException : e;
System.Data.Linq (18)
ChangeDirector.cs (6)
71if (tie.InnerException != null) { 72throw tie.InnerException; 124if (tie.InnerException != null) { 125throw tie.InnerException; 172if (tie.InnerException != null) { 173throw tie.InnerException;
ChangeProcessor.cs (2)
271if (tie.InnerException != null) { 272throw tie.InnerException;
DataServices.cs (4)
188if (tie.InnerException != null) { 189throw tie.InnerException; 361if (tie.InnerException != null) { 362throw tie.InnerException;
SqlClient\Query\QueryConverter.cs (1)
349throw e.InnerException;
SqlClient\Query\SqlFormatter.cs (1)
457throw e.InnerException;
SqlClient\SqlProvider.cs (4)
550throw tie.InnerException; 1087if (tie.InnerException != null) { 1088throw tie.InnerException; 1195throw e.InnerException;
System.Data.Services (5)
System\Data\Services\ErrorHandler.cs (5)
179DataServiceException dataException = exception.InnerException as DataServiceException; 317exception = exception.InnerException; 358exception = exception.InnerException; 445Exception exception = (dataException == null) ? this.exceptionArgs.Exception : dataException.InnerException; 478Exception exception = (dataException == null) ? this.exceptionArgs.Exception : dataException.InnerException;
System.Data.Services.Client (3)
System\Data\Services\Client\Binding\BindingObserver.cs (1)
211throw tie.InnerException;
System\Data\Services\Client\DataServiceRequest.cs (2)
130while (inEx.InnerException != null) 132inEx = inEx.InnerException;
System.Data.SqlXml (3)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
259throw new XslTransformException(e.InnerException, Res.XmlIl_ExtensionError, this.name);
System\Xml\Xsl\XslException.cs (2)
71if (InnerException != null) { 72result += " ---> " + InnerException.ToString() + Environment.NewLine + " " + CreateMessage(Res.Xml_EndOfInnerExceptionStack);
System.IdentityModel.Selectors (7)
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (7)
573Exception current = ie.InnerException; 588current = current.InnerException; 611if (null != ex.InnerException) 613while (null != ex.InnerException) 617ex.InnerException.Message); 618ex = ex.InnerException; 655current = current.InnerException;
System.Net (7)
net\PeerToPeer\Collaboration\ContactManager.cs (1)
1640throw new PeerToPeerException(SR.GetString(SR.Collab_AddContactFailedNoXml), e.InnerException);
net\PeerToPeer\Collaboration\PeerNearMe.cs (6)
128throw new PeerToPeerException(SR.GetString(SR.Collab_AddToContactMgrFailed), (e.InnerException != null ? e.InnerException : e)); 149throw new PeerToPeerException(SR.GetString(SR.Collab_AddToContactMgrFailed), (e.InnerException != null ? e.InnerException : e)); 160throw new PeerToPeerException(SR.GetString(SR.Collab_AddToContactMgrFailed) + " " + SR.GetString(SR.Collab_AddToContactMgrFailedUpdate), (e.InnerException != null ? e.InnerException : e));
System.Runtime.Serialization (2)
System\Xml\ValueHandle.cs (1)
475throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
System\Xml\XmlBaseReader.cs (1)
1628throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, exception.InnerException));
System.ServiceModel (54)
System\ServiceModel\Activation\SystemWebHelper.cs (10)
94if (exception.InnerException != null) 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException); 137if (exception.InnerException != null) 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException); 165if (exception.InnerException != null) 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException); 199if (exception.InnerException != null) 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException); 238if (exception.InnerException != null) 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException);
System\ServiceModel\Channels\Connection.cs (6)
628if (ioException.InnerException is TimeoutException) 630return new TimeoutException(ioException.InnerException.Message, ioException); 632else if (ioException.InnerException is CommunicationObjectAbortedException) 634return new CommunicationObjectAbortedException(ioException.InnerException.Message, ioException); 636else if (ioException.InnerException is CommunicationException) 638return new CommunicationException(ioException.InnerException.Message, ioException);
System\ServiceModel\Channels\HttpChannelHelpers.cs (8)
3627if (ioException.InnerException is SocketException) 3629return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, receiveTimeout, ioException); 3673if (ioException.InnerException is SocketException) 3675return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, TimeSpan.FromMilliseconds(request.Timeout), exception); 3701if (webException.InnerException is IOException) 3703return CreateRequestIOException((IOException)webException.InnerException, request, webException); 3706if (webException.InnerException is SocketException) 3708return SocketConnectionInitiator.ConvertConnectException((SocketException)webException.InnerException, request.RequestUri, TimeSpan.MaxValue, webException);
System\ServiceModel\Channels\PeerFlooder.cs (2)
172if (e is QuotaExceededException || (e is CommunicationException && e.InnerException is QuotaExceededException)) 482(exception is CommunicationException && !(exception.InnerException is QuotaExceededException))
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
377return CreateReturnMessage(e.InnerException, methodCall);
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
1183Win32Exception win32Exception = exception.InnerException as Win32Exception;
System\ServiceModel\Channels\UtilityExtension.cs (1)
357if (!(!(e.InnerException is QuotaExceededException)))
System\ServiceModel\Channels\WebSocketHelper.cs (2)
307if (webSocketException != null && webSocketException.InnerException != null) 309HttpListenerException httpListenerException = webSocketException.InnerException as HttpListenerException;
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
630messageInfo.faultException = exception.InnerException;
System\ServiceModel\Description\ServiceDescription.cs (1)
171SecurityException securityException = methodAccessException.InnerException as SecurityException;
System\ServiceModel\Description\ServiceReflector.cs (4)
457if (e is CustomAttributeFormatException && e.InnerException != null) 459e = e.InnerException; 460if (e is TargetInvocationException && e.InnerException != null) 462e = e.InnerException;
System\ServiceModel\Description\WsdlImporter.cs (6)
1892if (wie.InnerException != null && (wie.InnerException is WsdlImportException)) 1894WsdlImportException wieInner = wie.InnerException as WsdlImportException; 1957return new WsdlImportException(item, afe.InnerException); 1976Exception messageException = this.InnerException; 1979messageException = messageException.InnerException;
System\ServiceModel\Dispatcher\NavigatorInvalidBodyAccessException.cs (1)
40return new FilterInvalidBodyAccessException(this.Message, this.InnerException, list);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (5)
126if (ae != null && ae.InnerException != null) 128if (ae.InnerException is FaultException) 136if (ae.InnerException is SecurityException) 138DiagnosticUtility.TraceHandledException(ae.InnerException, TraceEventType.Warning); 294tcsObj.TrySetException(antecedent.Exception.InnerException);
System\ServiceModel\Dispatcher\XPathNavigatorException.cs (1)
40return new MessageFilterException(this.Message, this.InnerException, list);
System\ServiceModel\ExceptionDetail.cs (2)
33if (exception.InnerException != null) 35this.innerException = new ExceptionDetail(exception.InnerException);
System\ServiceModel\Security\SecurityUtils.cs (1)
1359e = e.InnerException;
System\ServiceModel\Transactions\WsatProxy.cs (1)
186Exception inner = e.InnerException;
System.ServiceModel.Activation (9)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (2)
452if (exception.InnerException is HttpException) 454throw exception.InnerException;
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (4)
201newException = new XmlException(SR.ExceptionLoadingSupportedVersion(filePath, e.Message), e.InnerException); 207newException = new XamlException(SR.ExceptionLoadingSupportedVersion(filePath, e.Message), e.InnerException); 213newException = new InvalidWorkflowException(SR.ExceptionLoadingSupportedVersion(filePath, e.Message), e.InnerException); 219newException = new ValidationException(SR.ExceptionLoadingSupportedVersion(filePath, e.Message), e.InnerException);
System\ServiceModel\ServiceHostingEnvironment.cs (3)
184if (exception.InnerException is HttpException) 186string messageAsString = SafeTryGetHtmlErrorMessage((HttpException)exception.InnerException); 196else if (exception.InnerException is InsufficientMemoryException)
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpUtility.cs (1)
529ex = ex.InnerException;
System.ServiceModel.Internals (12)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (2)
376if (exception.InnerException != null) 379AddExceptionToTraceString(xml, exception.InnerException);
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
792if (exception.InnerException != null) 826WriteExceptionToTraceString(xml, exception.InnerException, remainingLength, remainingAllowedRecursionDepth);
System\Runtime\ExceptionTrace.cs (7)
55if (targetInvocationException != null && targetInvocationException.InnerException != null) 57return AsError(targetInvocationException.InnerException); 74if (targetInvocationException != null && targetInvocationException.InnerException != null) 76return AsError(targetInvocationException.InnerException, eventSource); 94Exception innerException = targetInvocationException.InnerException; 152Exception innerException = (targetInvocationException != null && targetInvocationException.InnerException != null) 153? targetInvocationException.InnerException
System\Runtime\Fx.cs (1)
220exception = exception.InnerException;
System.Transactions (3)
System\Transactions\Oletx\OletxResourceManager.cs (1)
137COMException comEx = ex.InnerException as COMException;
System\Transactions\Trace\DiagnosticTrace.cs (2)
720if (exception.InnerException != null) 723DiagnosticTrace.AddExceptionToTraceString(xml, exception.InnerException);
System.Web (55)
Compilation\BaseResourcesBuildProvider.cs (4)
70if (e.InnerException != null && 71(e.InnerException is XmlException || e.InnerException is XmlSchemaException)) { 72throw e.InnerException;
Compilation\BuildManager.cs (3)
905string message = (e.InnerException != null ? e.InnerException.Message : String.Empty); 911e.InnerException);
Compilation\WsdlBuildProvider.cs (1)
41XmlException xmlException = e.InnerException as XmlException;
ErrorFormatter.cs (4)
525for (Exception e = Exception; e != null; e = e.InnerException) { 858for (Exception e = _e; e != null; e = e.InnerException) { 1950Exception nested = e.InnerException; 1954nested = nested.InnerException;
Hosting\IPipelineRuntime.cs (1)
287for (Exception current = e; current != null; current = current.InnerException) {
Hosting\ProcessHost.cs (2)
1141while (e.InnerException != null) { 1142e = e.InnerException;
HttpApplication.cs (3)
1558eActual = e.InnerException; 3453if (e is ThreadAbortException || e.InnerException != null && e.InnerException is ThreadAbortException) {
HttpException.cs (3)
210if (e.InnerException != null) 211return GetHttpCodeForException(e.InnerException); 221Exception inner = e.InnerException;
HttpResponse.cs (1)
1288Exception subExcep = e.InnerException;
Management\EventlogProvider.cs (1)
154exception = exception.InnerException;
Management\regiisutil.cs (4)
210if (e.InnerException != null) { 212sb.Append(e.InnerException.Message); 221if (exception.InnerException != null) { 222GetExceptionMessage(exception.InnerException, sb);
Management\TemplatedMailWebEventProvider.cs (2)
42Exception inner = e.InnerException; 51inner = inner.InnerException;
Management\WebEvents.cs (8)
361else if (e is HttpException && e.InnerException is ViewStateException) { 362ViewStateException vse = (ViewStateException)e.InnerException; 379if (e.InnerException != null) { 386eStack = e.InnerException; 389FindEventCode(e.InnerException, ref eventCode, ref eventDetailsCode, ref eStack); 423e.InnerException != null) { 425e = e.InnerException; 1346ex = ex.InnerException, level++) {
ModelBinding\TypeConverterModelBinder.cs (1)
42for (; ex != null; ex = ex.InnerException) {
Security\ADMembershipProvider.cs (10)
954if (tie.InnerException is COMException) 956COMException ce = (COMException) tie.InnerException; 1343if (tie.InnerException is COMException) 1345COMException ce = (COMException) tie.InnerException; 1485if (tie.InnerException is COMException) 1487COMException ce = (COMException) tie.InnerException; 3233if (!((e.InnerException is COMException) && (((COMException)e.InnerException).ErrorCode == unchecked((int) 0x8000500d)))) 3280if (!((e.InnerException is COMException) && (((COMException)e.InnerException).ErrorCode == unchecked((int) 0x8000500d))))
Security\AuthStoreRoleProvider.cs (1)
240COMException ce = (e.InnerException as COMException);
UI\HiddenFieldPageStatePersister.cs (1)
39if (e.InnerException is ViewStateException) {
UI\Util.cs (1)
553throw e.InnerException;
UI\ViewStateException.cs (1)
129for (; e != null; e = e.InnerException) {
Util\Misc.cs (1)
75for (Exception current = e; current != null; current = current.InnerException) {
Util\SmtpMail.cs (2)
92if (e.InnerException == null) 95return GetInnerMostException(e.InnerException);
System.Web.DynamicData (2)
DynamicData\DynamicValidator.cs (2)
225if (exception.InnerException == null) { 228ValidationException = exception.InnerException;
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceView.cs (1)
237throw e.InnerException;
System\Data\WebControls\EntityDataSourceWrapper.cs (2)
158if (e.InnerException != null) 160exceptionToThrow = e.InnerException;
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (2)
1164if (ex.InnerException != null) 1166errorMessage.AppendLine(Strings.Error_CannotRefreshSchema_RuntimeException_InnerException(ex.InnerException.Message));
System.Web.Extensions (7)
Compilation\WCFModel\MapFileLoader.cs (2)
256XmlException xmlException = ex.InnerException as XmlException; 263XmlSchemaException schemaException = ex.InnerException as XmlSchemaException;
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (2)
1472System.Xml.Schema.XmlSchemaException schemaException = ex.InnerException as System.Xml.Schema.XmlSchemaException; 1479System.Xml.XmlException xmlException = ex.InnerException as System.Xml.XmlException;
Script\Services\RestHandler.cs (1)
233ex = ex.InnerException;
UI\PageRequestManager.cs (2)
245if (e.InnerException != null) 246return GetHttpCodeForException(e.InnerException);
System.Web.Mobile (6)
Mobile\MobileErrorInfo.cs (1)
58e.InnerException as HttpCompileException;
UI\MobileControls\Adapters\WmlPageAdapter.cs (3)
209if ((e is HttpException && e.InnerException != null) || 210(e is System.Reflection.TargetInvocationException && e.InnerException != null)) 212ex = e.InnerException;
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (1)
661throw ex.InnerException;
UI\MobileControls\MobilePage.cs (1)
1585for (; e != null; e = e.InnerException) {
System.Web.Services (17)
System\Web\Services\Description\ServiceDescription.cs (1)
2835throw new ArgumentException(GetDuplicateMessage(value.GetType(), key), e.InnerException);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (8)
156if (e.InnerException != null && e.InnerException.InnerException == null) 157specialErrorMessages.Add(e.InnerException.Message); 165errorInValidDocument = errorInValidDocument.InnerException; 198while (e.InnerException != null) { 199errorMessage.Append("\n - ").Append(e.InnerException.Message); 200e = e.InnerException;
System\Web\Services\Protocols\ServerProtocol.cs (4)
134for (Exception inner = e; inner != null; inner = inner.InnerException) { 138if (inner.InnerException != null) builder.Append(" ---> "); 150if (e.InnerException != null) { 152GenerateFaultString(e.InnerException, builder);
System\Web\Services\Protocols\SoapException.cs (2)
105/// "/>and <see cref='System.Exception.InnerException'/> to <paramref name="innerException"/> .</para> 127/// <see cref='System.Exception.InnerException'/>
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
941for (Exception inner = soapException; inner != null; inner = inner.InnerException) {
System\Web\Services\Protocols\WebServiceHandler.cs (1)
85e = e.InnerException;
System.Windows.Forms (13)
winforms\Managed\System\Resources\ResXResourceReader.cs (2)
415string newMessage = SR.GetString(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException.Message); 416XmlException xml = new XmlException(newMessage, tie.InnerException, pt.Y, pt.X);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
559throw new TargetInvocationException(SR.GetString(SR.ExceptionCreatingCompEditorControl, e.ToString()), e.InnerException);
winforms\Managed\System\WinForms\Formatter.cs (2)
440throw new FormatException(ex.InnerException.Message, ex.InnerException);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
2581if (exception.InnerException != null) // Outer exception is a generic TargetInvocationException. 2583exception = exception.InnerException;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
1212if (ex.InnerException != null) { 1213ex = ex.InnerException;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
4987ex = ex.InnerException; 4998ex = ex.InnerException; 5069ex = ex.InnerException; 5079ex = ex.InnerException;
System.Workflow.Activities (20)
Common\BasePropertyDescriptor.cs (4)
102if (t is TargetInvocationException && t.InnerException != null) 103throw t.InnerException; 531if (t is TargetInvocationException && t.InnerException != null) 532throw t.InnerException;
InvokeWebService.cs (2)
142if (e.InnerException != null) 143throw e.InnerException;
Rules\Executor.cs (6)
128if (e.InnerException == null) 131RuleDecompiler.DecompileType(propertyInfo.ReflectedType), propertyInfo.Name, e.InnerException.Message); 132throw new TargetInvocationException(message, e.InnerException); 154if (e.InnerException == null) 157RuleDecompiler.DecompileType(propertyInfo.ReflectedType), propertyInfo.Name, e.InnerException.Message); 158throw new TargetInvocationException(message, e.InnerException);
Rules\Expressions.cs (6)
1612if (e.InnerException == null) 1615RuleDecompiler.DecompileType(mi.ReflectedType), mi.Name, e.InnerException.Message); 1616throw new TargetInvocationException(message, e.InnerException); 3118if (e.InnerException == null) 3123e.InnerException.Message); 3124throw new TargetInvocationException(message, e.InnerException);
Rules\Parser\Parser.cs (2)
2771if (invokeEx.InnerException == null) 2775throw new RuleSyntaxException(ErrorNumbers.Error_MethodNotExists, invokeEx.InnerException.Message, lparenPosition);
System.Workflow.ComponentModel (36)
AuthoringOM\Bind.cs (3)
1061throw (targetInvocationException != null) ? targetInvocationException.InnerException : exception; 1108throw (targetInvocationException != null) ? targetInvocationException.InnerException : exception; 1129throw (targetInvocationException != null) ? targetInvocationException.InnerException : exception;
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
577e = e.InnerException;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (11)
171if (tie.InnerException is TypeInitializationException && tie.InnerException.InnerException != null) 172results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 173else if (tie.InnerException.InnerException != null) 174results.Errors.Add(CreateXomlCompilerError(new ValidationError(tie.InnerException.InnerException.ToString(), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 176results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 683Exception e = tie.InnerException ?? tie;
AuthoringOM\Design\DesignerHelpers.cs (2)
1442while (e is TargetInvocationException && e.InnerException != null) 1443e = e.InnerException;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
726string errorMessage = (exception is ReflectionTypeLoadException || (exception.InnerException != null && exception.InnerException is ReflectionTypeLoadException)) ? DR.GetString(DR.TypeBrowser_UnableToLoadOneOrMoreTypes) : DR.GetString(DR.TypeBrowser_ProblemsLoadingAssembly);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
543if (ex.InnerException != null && !String.IsNullOrEmpty(ex.InnerException.Message)) 544dragDropException = ex.InnerException.Message;
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (10)
843while (e is TargetInvocationException && e.InnerException != null) 844e = e.InnerException; 982while (e is TargetInvocationException && e.InnerException != null) 983e = e.InnerException; 2000while (e is TargetInvocationException && e.InnerException != null) 2001e = e.InnerException; 2034while (e is TargetInvocationException && e.InnerException != null) 2035e = e.InnerException; 2044while (e is TargetInvocationException && e.InnerException != null) 2045e = e.InnerException;
Shared\BasePropertyDescriptor.cs (4)
101if (t is TargetInvocationException && t.InnerException != null) 102throw t.InnerException; 530if (t is TargetInvocationException && t.InnerException != null) 531throw t.InnerException;
System.Workflow.Runtime (1)
WorkflowExecutor.cs (1)
3203exp = exp.InnerException;
System.WorkflowServices (8)
System\ServiceModel\Dispatcher\WorkflowOperationErrorHandler.cs (1)
27return error.InnerException;
System\Workflow\Activities\SendActivity.cs (3)
558if (e.InnerException != null) 562workflowInstanceId, qualifiedName, e.InnerException.Message); 564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e.InnerException);
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (4)
139if (exception.InnerException != null) 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException); 205if (exception.InnerException != null) 207throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception.InnerException);
System.Xml (2)
System\Xml\Serialization\XmlSerializer.cs (2)
351e = e.InnerException; 428e = e.InnerException;
WindowsBase (6)
Base\MS\Internal\CriticalExceptions.cs (2)
55while (ex.InnerException != null && 59ex = ex.InnerException;
Base\System\IO\Packaging\EncryptedPackage.cs (2)
524COMException comException = ex.InnerException as COMException; 582COMException comException = ex.InnerException as COMException;
Shared\MS\Internal\ReaderWriterLockSlimWrapper.cs (2)
298catch (TargetInvocationException ex) when (ex.InnerException != null) 300throw ex.InnerException;
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (4)
717e.InnerException != null ? e.InnerException.GetType().ToString() : "null", 718e.InnerException != null ? e.InnerException.Message : "null"));