Are you sure that problems are in portc?
Did you test other port? Maybe you didn't configure oscillator correct, or MCLR pin, etc...