It appeared in the affidavit on which the attachment was obtained that the plaintiff was a foreign corporation, but was doing business in this state, and that the transaction out of which the action arose occurred in this state. The motion to vacate was upon the ground that there was no evidence that the plaintiff had obtained the certificate required by section 15 of chapter 087 of the Laws of 1802, and that, therefore, the warrant of attachment should not have been issued. This section provides:
“No foreign stock corporation other than a monied corporation shall do business in this state without having first procured from the secretary of state a certificate that it has complied with all the requirements of law to authorize it to do business in this state. * * * No foreign stock corporation doing business in this state without such certificate shall maintain any action in this state upon any contract made by it in this state until it shall have procured such certificate.”
Upon this ground the special term granted the motion to vacate the attachment, and from the order granting such motion this appeal is taken.
The proposition of law thus presented for our consideration is: Must the papers upon which a foreign corporation, doing business in this state, in relation to a transaction arising in this state, procures an attachment, show, for the purposes of the attachment, that the corporation has complied with section 15 of said act? and, in case such *1108fact does not appear in the affidavit, is it legal cause for vacating the warrant of attachment? While this provision does not affect the cause of action, it does affect the remedy; and while it may be true that a good cause of action is set forth, and that, for this reason, a complaint would not be obnoxious to demurrer, but would require that the objection should be taken by answer, if the question were one as to the sufficiency of the pleading, still, when we remember that an attachment is a provisional remedy, and that the section itself is aimed, not at the cause of action, but against its enforcement by a corporation, unless it has procured the certificate, the question is not one of pleading, nor as to the sufficiency of the complaint, but as to whether or not, upon the facts stated, the plaintiff is entitled to the remedy sought. The Code provides, it is true, in what cases attachments may be issued, and what is necessary to be shown by the plaintiff to entitle the party to the attachment; but these provisions are not by any means exclusive, and it is entirely within the province of the legislature to affix other conditions to the right of persons in this state to resort to such remedy. The provision is that “no foreign stock corporation doing business in this state without such certificate shall maintain any action”; and, as a remedy by attachment is a step in an action, it is clear that it applies equally to the remedies to which, but for the prohibition of the statute, a party would be entitled.
Apart, therefore, from the question of whether or not the complaint would be bad on demurrer, if it failed to allege the procuring of a certificate, we have held in regard to attachments that all facts going to the jurisdiction of the court, or to the right of the plaintiff to maintain the action, must be affirmatively set forth in the motion papers, and a defect in this respect is fatal to the attachment. The more numerous and recent instances of such rule in this court relate to cases where attachments have been issued against foreign corpora: tions when the plaintiff has failed to state the facts necessary to give the court jurisdiction of the cause of action. In Oliver v. Manufacturing Co. (Sup.) 10 N. Y. Supp. 771, it is said:
“The power of the court to reach by its process the property of a foreign corporation within the limits of this state depends entirely upon statutory enactments, and does not proceed from any inherent or general jurisdiction which the court possesses. Therefore, where such right is created by statute, the conditions thereunder attached to its exercise must be fulfilled, and they must appear.before the court obtains jurisdiction.”
In the case at bar the plaintiff is a foreign corporation, and an attachment was issued for a cause of action which arose in this state; and therefore it was necessary, in order that the court should acquire jurisdiction, for it to appear that the plaintiff was a resident of the state. The papers are silent upon this point. Where the statute^ as a preliminary to jurisdiction, requires facts to exist, they cannot be presumed. To the same effect is the case of Smith v. Milk Co., 70 Hun, 848, 24 N. Y. Supp. 79.
These cases are authority for the proposition urged by the respondent that, for the purpose of obtaining a warrant of attachment, it is *1109necessary that the papers of the attaching creditor should show alt the facts which entitle him to maintain the action, and which give the court jurisdiction, and that, if the papers fail to set forth the facts in either respect, the attachment will be vacated. Applying this rule, it here appears that there is an express statute forbidding a foreign corporation to maintain an action without procuring a certificate from the secretary of state. While, therefore, it presupposes a good cause of action, there is an express prohibition against enforcing it, or having any remedy thereon, until such certificate is procured. The certificate, therefore, being a condition precedent to the right to maintain the action, it was necessary to have it appear in the papers upon which the attachment was granted that the foreign corporation had complied with the condition, upon compliance with which alone its right to maintain the action would be justified.
We think, therefore, that the order is right, and should be affirmed, with $10 costs and disbursements.
VAN BRUNT, P. J., concurs.