Opinion by
William W. Porter, J.,This is an action by scire facias upon a mortgage secured upon real estate upon land in the city of Bradford, in the state of Pennsylvania. It was given by the defendant to the plaintiff association, a corporation incorporated under the laws of the state of New York, located at Geneva, in the county of Ontario, in the state of New York. The defense set up is, that the plaintiff being a foreign corporation, has not complied with the provisions of the act of 1874, prohibiting the “ doing, of business ” by foreign corporations, until they shall have established an office or offices and appointed an agent or agents, and until they shall have filed in the office of the secretary of the commonwealth a statement signed by the president and secretary, showing the title and object of the corporation, the location of its offices and the names of its authorized agents. The act further provides, that the certificate of the secretary of the commonwealth of the filing of such statement, shall be preserved for public inspection by each of said agents in each of said offices. In Lasher v. Stimson, 145 Pa. 30, it is said that “ these terms are not onerous or in conflict with any constitutional provision or rule of public policy. But they are clearly prohibitory and they indelibly stamp as unlawful any business transaction within the state, by a foreign corporation which has not complied with them. It is only by its observance of them that it can have a legal existence for business purposes within this jurisdiction or acquire contractual rights which our courts will recognize.”
The facts essential to a consideration of the question now before us, taken from the findings of the court beloyq may be marshaled as follows: The plaintiff association is a foreign corporation. At the time of the making, executing and delivering of the mortgage it had not complied with the provisions of the act of April 22, 1874. At the date of the transaction involved in this controversy, it was employing a portion of its *397capital in making loans in the city of Bradford, in the state of Pennsylvania, secured by mortgages upon real estate in the said state. A local board of the plaintiff association was organized in the city of Bradford. This board elected a secretary and treasurer, designated and approved by the plaintiff association. Payments upon stock and loans were made to this approved agent in the city of Bradford. The defendant, being a shareholder as well as a borrower from the plaintiff association, was instructed to pay his first instalment to “ Elliott & Edgett, Receiver for his branch,” who would “ give him proper receipt for the same.” The application of the defendant for the loan was made through Elliott & Edgett, the application being signed in the office of Elliott & Edgett, in the city of Bradford. The mortgage was acknowledged and executed in the city of Bradford and delivered by the defendant to the representatives of the association in Bradford to be transmitted to the plaintiff association. The money loaned was transmitted through the representatives of the association at Bradford to the defendant. The payments made by the defendant on account of the mortgage were to the “ approved collectors of the association in the city of Bradford, who received their compensation through the moneys collected.” Finally, the land, as we have seen, upon which the loan was secured, was in the city of Bradford. In determining whether recovery is barred by a failure to observe the provisions of the act of 1874, we may not be moved by any equities between the parties. The act was not passed to affect private interests, but on grounds of public policy. Thus viewed, the question before us is strictly whether the transaction shown by the above facts was a doing of business by a foreign corporation within the state, within the contemplation of the act of 1874. We are of opinion that it was. It is apparent that to so hold upon the facts shown does not in any way conflict with the right of a citizen of Pennsylvania to borrow money from a foreign corporation and to secure its repayment by mortgage on real estate within the commonwealth. ■ In such a case the corporation may sue in Pennsylvania to enforce payment of the loan: Leasure v. Ins. Co., 91 Pa. 491.
The words, doing business,” as used in the act of 1874, have been before the courts of the state for interpretation a *398number of times. It would involve an undue extension of this opinion to review the eases separately. From an examination of them it will appear that the following considerations, inter alia, moved the court in reaching a decision: 1. That the corporation had or had not a part of its capital invested or employed within the state of Pennsylvania: Mearshon & Co. v. Lumber Co., 187 Pa. 12; Blakeslee Mfg. Co. v. Hilton, 5 Pa. Superior Ct. 184; Kilgore v. Smith, 122 Pa. 48; The Milsom, etc., Co. v. Kelly, 10 Pa. Superior Ct. 565; Wolff Dryer Co. v. Bigler, 192 Pa. 466. 2. That the contract in dispute was not a single transaction, but part of a continuing business: Ice Mfg. Co. v. Armour, 12 Pa. Superior Ct. 443. 3. That the company had offices and agents for the general conduct of its business within the state: Blakeslee Mfg. Co. v. Hilton, supra; Wolff Dryer Co. v. Bigler, supra. See also Trust Co. v. McCanna, 6 Pa. Dist. Rep. (U. S. C. C.) 25, and Southern Bldg. & Loan Assn. v. Riggle, 4 Pa. Dist. Rep. 617. 4. That the property affected by the contract was within the state, with a citizen of the state, which seems to be the ground upon which the recent case of Swing v. Munson, 191 Pa. 582, rests. The contract was one of fire insurance which the court assumed to have been lawfully made in Ohio. It was held to he a contract “ in direct violation of the laws of this state; it was the indemnification of a citizen of Pennsylvania against loss by fire on property wholly within Pennsylvania; without regard to where the contract was made, the subject of it was property within this state; it is the attempt of a foreign insurance company to do business in this state in violation of the laws of this state.” See also Insurance Co. v. Sharpless, 12 Pa. Superior Ct. 333. In the case before us the defendant is a citizen of Pennsylvania, and the proceeding being on a mortgage and therefore in rem, the subject of the contract is property within this state. Apparently (if the case just cited has been properly understood), the situs of the property affected is an important factor in determining the status of contracts with foreign corporations; and if the test is applicable to other than insurance contracts, the decision goes far toward holding the plaintiff in the present case without right to recover. We prefer, however, to put this judgment upon the grounds that the transaction before us involved an investment or employment of a part of the plaintiff company’s capital within *399the state of Pennsylvania, and was had through and by means of an agency within the state for the prosecution of the company’s corporate business.
In order to escape the voiding of the contract by the com-pany’s failure to register as required by the act of 1874, the appellee shows that subsequently to the giving of the mortgage upon which suit is brought, the association did file with the secretary of the commonwealth the statement required by the act. It is contended that this having been done but a short time after the execution of the mortgage, it validates the transaction. This contention cannot be sustained. Upon grounds of public policy the contract is void. The subsequent act of the foreign corporation in filing the statement with the secretary of the commonwealth could not vitalize that which was dead. If any inference is to be drawn from the fact of the filing of the statement, it is that the foreign corporation in the conduct of its business had been doing, before the filing, that business which subsequent to the filing it intended to pursue within the commonwealth of Pennsylvania.
The plaintiff company further contends that the defendant was a member and stockholder of the association, and that having received the full matured value of his stock advanced to him as a loan, he is estopped from setting up the failure of the company to comply with the provisions of the act of 1874. The action before us is upon a mortgage upon which a loan was made. Whatever the relation of the corporation to the defendant may have been, the corporation has brought before us a proceeding in rem. We are called upon to pass upon the right to foreclose the mortgage to collect the money loaned. As before said, we take no account of the equities between the parties in enforcing the provisions of an act of assembly, having regard not to private right but to public policy. Were all the equities weighed, however, it may be that the beam of the balance would dip in the defendant’s favor.
The facts of this case disclose a transaction which was a doing of business within the commonwealth in violation of the statute. We are of opinion that error was committed by the court below and the judgment is reversed.
Beaver, J., dissents.