If the machine's compressor runs when you switch it on, then turn the machine on maximum and let it run for an hour or so. Then check the coils in the back with your hand. If they are not getting cold at all, then there is a significant problem with the refrigeration process in the unit. It may have developed a leak and allowed your refrigerant gas to escape, or there may be another internal problem with the compressor. Either way you would need to have it serviced by a fridge technician, or more likely just replaced with a whole new unit since both options can potentially cost about the same.
If the unit runs normally and the coils are getting cold, then make sure they are not totally icing up which will impede the unit's performance. If your dehumidifier is freezing up then that probably means the unit itself is actually working well. The humidity level in the room may be relatively low and you probably have the unit turned up too high for the conditions.
Try turning down the setting on the unit so that it cycles on and off every few hours and does not run continuously.
Also try using some warm soapy water to clean off any dust or oily residue from the cooling coils in the rear of the unit. Remember to also clean the air intake filter while you are at it.
The ambient temperature in the room may also be a bit too low, so you can try adding some heat to the room if necessary. A dehumidifier will not work properly if the ambient air temperature is too low. Basically, the warmer and more humid the room is, the better they work. Since warm air rises, you can even try lifting the unit higher up off the cold floor onto a bench or table where the air is warmer.
Sometimes the drain tube leading to the bucket is clogged. You can often clean this out by inserting the pointy end of a long heavy duty plastic zip tie and jiggling it around a bit. Do not insert anything metal or sharp into the tube or you may damage it.
You can click on the following link for a general operating and troubleshooting guide with additional tips on effective dehumidifier operation:
And here is a link to a tip from another Expert (Heatman101) which includes his very detailed troubleshooting guide for dehumidifiers:
I hope that was helpful to you, good luck.
If you choose to rate this solution using the Thumbs Up scale provided, I thank you very much for your time and consideration.