If any insurance company, cooperative or otherwise, makes insurance without complying with the provisions of this chapter, the contract shall be valid, but every person acting within this state as an insurance producer of the company within the meaning of chapter 2.4 of this title, respecting the effecting of any insurance, shall be fined not less than three hundred dollars ($300) nor more than one thousand dollars ($1,000). No action at law or suit in equity shall be maintained or recovery had by any insurance company, cooperative or otherwise, or by any assignee of the company or by any person claiming under the assignee or the company, except a domestic receiver of the company, on any contract in any of the courts of this state, so long as the company fails to comply with the provisions of this chapter.
R.I. Gen. Laws § 27-2-20