MSIR.0781 END (block) expected, not END (block)
An End statement was followed by the incorrect qualifier. The qualifier on the End statement must match the statement that starts the block, for example Public, or Class, or Subroutine. One common mistake is to end a Public Shared or Private Shared block with just an End Public or End Private. For these blocks, the End statement must be End Public Shared and or End Private Shared, respectively.