'Using' must end with a matching 'End Using'

A Using statement occurs without a corresponding End Using statement.

An End Using statement must be used to end the Using block.

Error ID: BC36008

To correct this error

  1. If this Using block is part of a set of nested Using blocks, make sure each block is properly terminated.

  2. Add an End Using statement to the end of the Using block.

See Also

Tasks

How to: Dispose of a System Resource

Reference

Using Statement (Visual Basic)