1 type derived from COMException
System.ServiceModel (1)
System\ServiceModel\ComIntegration\MonikerSyntaxException.cs (1)
15internal class MonikerSyntaxException : COMException
24 instantiations of COMException
mscorlib (2)
system\oleautbinder.cs (1)
108throw new COMException(Environment.GetResourceString("Interop.COM_TypeMismatch"), unchecked((int)0x80020005));
system\runtime\interopservices\windowsruntime\winrtclassactivator.cs (1)
56throw new COMException(__HResults.REGDB_E_CLASSNOTREG);
PresentationFramework (6)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
269throw new COMException(xmlException.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (4)
440throw new COMException(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS); 444throw new COMException(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT); 581throw new COMException(ex.Message, (int)FilterErrorCode.FILTER_E_ACCESS); 585throw new COMException(ex.Message, (int)FilterErrorCode.FILTER_E_UNKNOWNFORMAT);
src\Framework\System\Windows\Standard\ErrorCodes.cs (1)
486e = new COMException(message, (int)_value);
System (1)
compmod\system\componentmodel\LicenseManager.cs (1)
412throw new COMException(lexp.Message, CLASS_E_NOTLICENSED);
System.Data (3)
fx\src\data\System\Data\OleDb\DBPropSet.cs (1)
110lastErrorFromProvider = new COMException(message, (int)lastErrorHr);
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
296throw new COMException(message, (int)hr); 450throw new COMException(message, (int)hr);
System.ServiceModel (3)
System\ServiceModel\ComIntegration\TearOffProxy.cs (2)
45return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(e.GetBaseException().Message, Marshal.GetHRForException(e.GetBaseException()))), msg); 61return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(returnMsg.Exception.GetBaseException().Message, Marshal.GetHRForException(returnMsg.Exception.GetBaseException()))), msg);
System\ServiceModel\ComIntegration\TransactionProxy.cs (1)
268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(null, HR.CONTEXT_E_NOTRANSACTION));
System.Web.Mobile (8)
UI\MobileControls\Design\Util\MSHTMLHost.cs (8)
131throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 180throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 236throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 240throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 244throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 254throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 258throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 262throw new COMException(String.Empty, NativeMethods.E_NOTIMPL);
WindowsBase (1)
Base\MS\Internal\Interop\ErrorCodes.cs (1)
455e = new COMException(message ?? e.Message, (int)_value);
212 references to COMException
ComSvcConfig (6)
ComAdminWrapper.cs (2)
170catch (COMException ex) 226catch (COMException e)
Tool.cs (1)
893catch (COMException)
WasAdminWrapper.cs (3)
91catch (COMException ex) 133catch (COMException ex) 178catch (COMException ex)
mscorlib (3)
system\runtime\interopservices\marshal.cs (1)
1626catch(COMException)
system\runtime\remoting\redirectionproxy.cs (2)
129COMException comException = replyMsg.Exception as COMException;
PresentationFramework (18)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
433catch (COMException e)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
203if (!(ex is InvalidComObjectException || ex is COMException || ex is InvalidOperationException) ||
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (3)
189catch (COMException) 301catch(COMException) 400catch (COMException)
src\Framework\MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
126catch (COMException comException)
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (1)
94catch (COMException ex)
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
2885catch ( System.Runtime.InteropServices.COMException ) 2943catch ( System.Runtime.InteropServices.COMException )
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1256catch (COMException ce)
src\Framework\System\Windows\Data\ObjectDataProvider.cs (1)
470catch (System.Runtime.InteropServices.COMException ce)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
777catch (COMException)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
260catch (COMException ex) when(ex.HResult == NativeMethods.E_UNEXPECTED)
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
72when (ex is InvalidCastException || ex is COMException )
src\Framework\System\Windows\FrameworkCompatibilityPreferences.cs (1)
389/// a corresponding <see cref="System.Runtime.InteropServices.COMException"/> (which is a type of
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
1137catch (COMException) 1148catch (COMException e)
src\Framework\System\Windows\Standard\ErrorCodes.cs (1)
478if (e.GetType() == typeof(COMException))
System (1)
net\System\URI.cs (1)
285catch (COMException ex){
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1055catch (COMException err)
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1055catch (COMException err)
System.IO.Log (9)
System\IO\Log\Error.cs (1)
355public static Exception ConvertKnownException(COMException comException)
System\IO\Log\SimpleFileLog.cs (8)
50catch (COMException exception) 82catch (COMException exception) 105catch (COMException exception) 127catch (COMException exception) 152catch (COMException exception) 192catch (COMException exception) 235catch (COMException exception) 277catch (COMException exception)
System.Management (20)
managementbaseobject.cs (2)
511catch (COMException e) 753catch (System.Runtime.InteropServices.COMException)
managementexception.cs (4)
662 else if (e is COMException) 663 errorCode = (ManagementStatus)((COMException)e).ErrorCode; 734 if (e is COMException) 738 msg = GetMessage ((ManagementStatus)((COMException)e).ErrorCode);
managementobjectcollection.cs (2)
318catch (COMException e) 633catch (COMException e)
managementobjectsearcher.cs (2)
371catch (COMException e) 465catch (COMException e)
managementpath.cs (4)
373catch (COMException e) 545catch (COMException) 860catch (COMException) 940catch (COMException)
managementscope.cs (1)
1155catch (COMException e)
method.cs (1)
123catch (COMException e)
methodset.cs (4)
98catch (COMException e) 272catch (COMException e) 367catch (COMException e) 434catch (COMException e)
System.ServiceModel (1)
System\ServiceModel\ComIntegration\CatalogUtil.cs (1)
175catch (COMException comException)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
299catch (COMException)
System.ServiceModel.WasHosting (3)
System\ServiceModel\WasHosting\BaseAppDomainProtocolHandler.cs (1)
56catch (COMException exception)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
211catch (COMException e) 543catch (COMException e)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
291catch (COMException e)
System.Transactions (38)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
77catch ( COMException ex )
System\Transactions\Oletx\OletxEnlistment.cs (12)
414catch ( COMException comException ) 435catch ( COMException comException ) 448catch ( COMException ex ) 508catch ( COMException ex ) 593catch ( COMException ex ) 714catch ( COMException ex ) 944catch ( COMException ex ) 1069catch ( COMException ex ) 1190catch ( COMException ex ) 1254catch ( COMException ex ) 1330catch ( COMException ex ) 1411catch ( COMException ex )
System\Transactions\Oletx\OletxResourceManager.cs (7)
115catch ( COMException ex ) 137COMException comEx = ex.InnerException as COMException; 199catch ( COMException ex ) 387catch (COMException comException) 518catch ( COMException ex ) 807catch ( COMException ex ) // or whatever exception gets thrown if we get a bad hr.
System\Transactions\Oletx\OleTxTransaction.cs (4)
974catch (COMException comException) 1164catch (COMException comException) 1225catch (COMException comException) 1314catch (COMException comException)
System\Transactions\Oletx\OletxTransactionManager.cs (2)
641catch ( COMException ex ) 836COMException comException
System\Transactions\Oletx\OletxVolatileEnlistment.cs (4)
286catch ( COMException ex ) 515catch ( COMException ex ) 733catch ( COMException ex ) 866catch ( COMException ex )
System\Transactions\TransactionInterop.cs (7)
135catch (COMException comException) 254catch ( COMException comException ) 351catch (COMException comException) 488catch ( COMException comException ) 549catch ( COMException comException ) 607catch ( COMException ex ) 664catch ( COMException comException )
System\Transactions\TransactionScope.cs (1)
1269catch ( COMException e )
System.Web (32)
Configuration\RemoteWebConfigurationHost.cs (1)
484} catch (COMException ex) {
Security\ADMembershipProvider.cs (29)
852catch (COMException e1) 940catch (COMException) 954if (tie.InnerException is COMException) 956COMException ce = (COMException) tie.InnerException; 1334catch (COMException e2) 1343if (tie.InnerException is COMException) 1345COMException ce = (COMException) tie.InnerException; 1485if (tie.InnerException is COMException) 1487COMException ce = (COMException) tie.InnerException; 2113catch (COMException e) 3027catch (COMException e) 3233if (!((e.InnerException is COMException) && (((COMException)e.InnerException).ErrorCode == unchecked((int) 0x8000500d)))) 3251catch (COMException e) 3280if (!((e.InnerException is COMException) && (((COMException)e.InnerException).ErrorCode == unchecked((int) 0x8000500d)))) 3298catch (COMException e) 3332catch (COMException e) 3508catch (COMException e) 3521catch (COMException e) 3578catch (COMException ce) 3622catch (COMException ce) 3646catch (COMException e) 3718catch (COMException ce) 3743catch (COMException ce) 4211catch (COMException e)
Security\AuthStoreRoleProvider.cs (2)
240COMException ce = (e.InnerException as COMException);
System.Windows.Forms (60)
winforms\Managed\System\WinForms\AccessibleObject.cs (30)
117catch (COMException e) { 137catch (COMException e) { 160catch (COMException e) { 189catch (COMException e) { 210catch (COMException e) { 232catch (COMException e) { 246catch (COMException e) { 315catch (COMException e) { 330catch (COMException e) { 417catch (COMException e) { 442catch (COMException e) { 479catch (COMException e) { 513catch (COMException e) { 1289catch (COMException e) { 1324catch (COMException e) { 1401catch (COMException e) { 1453catch (COMException e) { 1498catch (COMException e) { 1520catch (COMException e) { 1629catch (COMException e) { 1669catch (COMException e) { 1715catch (COMException e) { 1753catch (COMException e) { 1790catch (COMException e) { 1832catch (COMException e) { 1968catch (COMException e) { 2043catch (COMException e) { 2123catch (COMException e) { 2270catch (COMException e) { 2294catch (COMException e) {
winforms\Managed\System\WinForms\AxHost.cs (14)
94private static COMException E_NOTIMPL = new COMException(SR.GetString(SR.AXNotImplemented), unchecked((int)0x80000001)); 95private static COMException E_INVALIDARG = new COMException(SR.GetString(SR.AXInvalidArgument), unchecked((int)0x80070057)); 96private static COMException E_FAIL = new COMException(SR.GetString(SR.AXUnknownError), unchecked((int)0x80004005)); 97private static COMException E_NOINTERFACE = new COMException(SR.GetString(SR.AxInterfaceNotSupported), unchecked((int)0x80004002)); 1513catch (COMException) { 1521catch (COMException e) { 2307catch (COMException) { 2485catch (COMException t) { 2494catch (COMException t) { 2545catch (COMException e) { 4814catch (COMException) { 4836catch (COMException) { 6038catch (COMException t) { 7087catch (COMException) {
winforms\Managed\System\WinForms\Control.cs (1)
17266catch (COMException e) {
winforms\Managed\System\WinForms\Cursor.cs (1)
658catch (COMException e) {
winforms\Managed\System\WinForms\HtmlElement.cs (6)
214catch (COMException ex) 241catch (COMException ex) 339catch (COMException ex) 366catch (COMException ex) 542catch (COMException ex) 694catch (COMException comException)
winforms\Managed\System\WinForms\HtmlWindowCollection.cs (1)
72catch (COMException) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
1261catch (COMException) {}
winforms\Managed\System\WinForms\WebBrowser.cs (3)
381catch (COMException) { 408catch (COMException) { 1584catch (COMException ce) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
1159catch (COMException) { 1167catch (COMException e) {
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
112catch (COMException t) {
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\Accessible.cs (2)
1377COMException comException = e as COMException;
WindowsBase (7)
Base\MS\Internal\Interop\ErrorCodes.cs (1)
437if (e.GetType() == typeof(COMException))
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (1)
823catch( COMException e )
Base\System\IO\Packaging\EncryptedPackage.cs (4)
524COMException comException = ex.InnerException as COMException; 582COMException comException = ex.InnerException as COMException;
Shared\MS\Win32\SafeNativeMethodsCLR.cs (1)
580/// <exception cref="COMException">
WsatConfig (4)
Configuration\FirewallWrapper.cs (2)
35catch (COMException) 81catch (COMException e)
Configuration\MsdtcWrapper.cs (1)
144catch (COMException e)
Configuration\StdRegProviderWrapper.cs (1)
104catch (COMException e) // for RPC_S_SERVER_UNAVAILABLE sort of errors
WsatUI (4)
Configuration\FirewallWrapper.cs (2)
35catch (COMException) 81catch (COMException e)
Configuration\MsdtcWrapper.cs (1)
144catch (COMException e)
Configuration\StdRegProviderWrapper.cs (1)
104catch (COMException e) // for RPC_S_SERVER_UNAVAILABLE sort of errors