Step1: Turn off gas supply and disconnect electrical power to the appliance.
Step2: Remove access panel and carefully disconnect old valve wiring and gas lines.
Step3: Unscrew the faulty solenoid valve using proper wrench support.
Step4: Clean pipe threads and apply approved gas-rated sealant.
Step5: Install new solenoid valve in correct flow direction and tighten securely.
Step6: Reconnect wiring and ensure proper grounding.
Step7: Restore gas and power, then test for leaks and proper ignition operation.