w245 a/c issues

  mercedes/b-class/2005-2011

Good day. My w245 ( b180 petrol 1.7L with cvt) has recently started having issues with the a/c. During driving the a/c blows cold then shuts off leaving the blower to blow warm air. Sometimes it just starts blowing cold again for a couple minutes then goes back to warm. Carried car to agent who checked the gas and that was ok. They then told me the compressor and dryer would have to change soon. They still have not told me the problem!!! How could that be if the a/c blows pretty cold (when working)?

Can you advise me on this problem?

Regards

mmctrinidad

9