Due to the harsh channel conditions of the industrial environments, the data transmission over the wireless channel suffers from erroneous packets. The energy consumption of error control schemes is of great importance for battery-limited Wireless Sensor Networks (WSNs) in industrial environments. In this paper, the lifetime analysis of error control schemes, i.e., Automatic Repeat Request (ARQ), Forward Error Correction (FEC) and Hybrid ARQ (HARQ), is presented under different industrial environment channel conditions. Furthermore, the impact of energy harvesting methods on the network lifetime is investigated. A novel Mixed Integer Programming (MIP) framework is developed to maximize the network lifetime while meeting application reliability. Performance results show that utilizing HARQ-II error control scheme for Mica2 and BCH(31,21,5) for Telos improves the network lifetime while meeting the desired application reliability rate.