Exhibit 23.1

                    Consent of Independent Registered Public
                                Accounting Firm

We consent to the reference to our firm under the caption "Experts" and to the
use of our report dated November 23, 2004, in the Registration Statement (Form
S-1 No. 333-00000) and related Prospectus of AlgoRx Pharmaceuticals, Inc. dated
November 24, 2004.



                                                           /s/ Ernst & Young LLP


MetroPark, New Jersey
November 23, 2004