No suit or action shall be brought for the collection of a commission for the sale of a security, as defined within this chapter without alleging and proving that the plaintiff was a duly licensed salesperson for an issuer or a broker-dealer, or exempt under the provisions of RCW
21.20.040, or a duly licensed broker-dealer in this state or another state at the time the alleged cause of action arose.