'#End Region' must be preceded by a matching '#Region'
With #Region you can specify a block of code to expand or collapse when using the outlining feature of the Visual Studio Code Editor. The start and end of #Region statements must be in the same code block.
Error ID: BC30680
To correct this error
- Insert #Region at the appropriate place before the corresponding #EndRegion statement.