The length measuring device has a housing with an elongated hollow section (21) and a front side cover (22) that is arranged at the hollow section. An electrically conducting connecting element (41) is provided as a component of a seal ring (4), which is arranged between the hollow section and the cover.