The symptoms you describe are exactly what would happen if your coolant sensor was shorted, 117 is the proper code but the fan will only constantly run if there is a short in the sensor or the harness is off the sensor, check to make shure your making proper contact with the sensor.