You need to clean off all the old grease first then, apply a light/small amount of grease to the gasket.
Careful not to nick' it on anything, and to get the holes aligned up correctly. And when screwing the Solenoid back in, dont be too afraid to make sure the screws are in tight. Otherwise the seal between the solenoid and body will leak.