Form: POS 8C

Post-effective amendment filed under the 1933 Act only or under both the 1933 and 1940 Acts pursuant to Section 8(c) of the 1933 Act by closed-end investment companies (this filing cannot be submitted as a 1940 Act only filing)

June 7, 2012

Exhibit (n)(1)

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the captions “Selected Consolidated Financial and Other Data”, “Senior Securities” and “Independent Registered Public Accounting Firm” and to the use of our reports (a) dated March 7, 2012, with respect to the consolidated financial statements and financial highlights of Triangle Capital Corporation as of December 31, 2011 and 2010 and for the three years ended December 31, 2011, and the consolidated financial highlights for each of the five years in the period ended December 31, 2011; (b) dated March 7, 2012, with respect to the effectiveness of internal control over financial reporting of Triangle Capital Corporation as of December 31, 2011 and (c) dated June 7, 2012 with respect to the senior securities table of Triangle Capital Corporation as of December 31, 2011, in Post-effective Amendment No. 3 to the Registration Statement (Form N-2 No. 333-175160).

/s/ Ernst & Young LLP

Raleigh, North Carolina

June 7, 2012