The method of calculation of frequencies of own oscillations of cavity resonators with thin dielectric lattices is developed. The method is based on an opportunity of construction of the general solutions of an wide class of the differential equations containing generalized functions. This circumstance allows after application of a Fourier method to obtain the exact solution of a problem of Sturm-Liouville. In detail method is described for the resonator of the rectangular form.