I've been messing with the same thing on my car. I can't pass emissions with the CEL on.
It is also an evap system problem. I have replace the gas cap and vent solenoid and each has not fixed. I'm only into it 40 bucks though. That seems like an awfully high price for your car. Try googling the error code and your vehicle and might show you the usual fixes.