'Catch' cannot appear after 'Finally' within a 'Try' statement

A Catch statement appears in the code after the Finally ending a Try statement block. Catch must appear within a Try...Catch...Finally statement block.

Error ID: BC30379

To correct this error

  • Move the Catch statement to a more appropriate place in the code.

See Also

Concepts

Structured Exception Handling Overview for Visual Basic

Reference

Try...Catch...Finally Statement (Visual Basic)