Except upon written order of the Zoning Hearing Board authorizing a variance, no building permit shall be issued for any structure where said erection, construction, reconstruction, extension, moving, razing or use thereof would be in violation of any of the provisions of this chapter. Moreover, any permit issued in error shall in no case be construed as waiving any provisions of this chapter.