Input output voltage problem in PIC32 starter kit & IO expansion board
Additionally to your TRISC configuration you might have to clear the ANSC register. This sets the port to didital mode and disables the analog functions of the pin. You did not mention the exact PIC model so I can't check on the exact functionality of RC1.
I came across this once when I configured a pin as UART input but the input did never read the digital Rx because it was configured as an analog pin.
I would furthermore check all other functions of RC2, and configure all those functions as disabled (e.g. ADC).