title: Not able to catch exceptions because of SecurityTokenExpiredException' is ambiguous in the namespace
body: <p>I am validating a JWT token via</p>
  <pre><code>Dim principal = tokenHandler.ValidateToken(token, validationParameters, securityToken)
  </code></pre>
  <p>the validation works as expected but I can't catch the specific exception. I tried via</p>
  <pre><code>Catch ex As Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException
  </code></pre>
  <p>which is supposed to catch when token is Expired but I can't use that one as I get the following Error</p>
  <blockquote>
  <p>Severity  Code    Description Project File    Line    Suppression State
  Error BC30560 'SecurityTokenExpiredException' is ambiguous in the
  namespace
  'Microsoft.IdentityModel.Tokens'. SoapToAPI   C:\Users\source\repos\SoapToAPI\Helper\JWTUtil.vb   197 Active</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/dn2yJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dn2yJ.png" alt="enter image description here" /></a></p>