Upon any proceeding instituted in pursuance of notice the plaintiff shall not be at liberty to advance any evidence of any cause of action except such as has been distinctly stated in such notice nor shall the plaintiff be entitled to a verdict without proving on the trial that such notice has been duly served.