title: Catch cannot catch type 'Microsoft.Office.Interop.Outlook.Exception'
body: <p>I have a program in VB.Net that receives mails from Outlook, extracts attachments and inserts the attachments into a table through a query. I would like to put the query/queries in a Try/Catch block, but cannot do so as Outlook exceptions cannot be caught, and it gives me an error, and unless I put a very specific exception, I cannot catch it. Is there a workaround?</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>    Try
  
      Catch ex As Exception
  
      End Try
  </code></pre>
  
  <p>Exception is underlined and when I hover on it, it says: "Catch cannot catch type 'Microsoft.Office.Interop.Outlook.Exception' because it is not in 'System.Exception' or a class that inherits from 'System.Exception'". This is affecting all my other code which I'd like to put into a Try/Catch block. What to do?</p>