(A) Any person, firm or corporation who violates any provision of this code for which another penalty is not specifically provided, shall, upon conviction, be guilty of a misdemeanor. The penalty which may be imposed for any crime which is a misdemeanor under this code, including Minnesota Statutes specifically adopted by reference, shall be a sentence of not more than 90 days or a fine of not more than $1,000, or both.
(B) Any person, firm or corporation who violates any provision of this code, including Minnesota Statutes specifically adopted by reference, which is designated to be a petty misdemeanor shall, upon conviction, be guilty of a petty misdemeanor. The penalty which may be imposed for any petty offense which is a petty misdemeanor shall be a sentence of a fine of not more than $300.
(C) In either the case of a misdemeanor or a petty misdemeanor, the costs of prosecution may be added. A separate offense shall be deemed committed upon each day during which a violation occurs or continues.
(D) The failure of any officer or employee of the county to perform any official duty imposed by this code shall not subject the officer or employee to the penalty imposed for a violation.