Police said the body was recovered last evening after a locomotive driver reported about it.
The victim, Amit Nagar of Bagpur in Dankaur area, had been missing for the past few days. He went missing on November 1 after he left home for his office in Noida to seek leave for his wedding.
Police have sent the body for a post-mortem.
The investigating officer said a case of unnatural death has been registered and they are probing whether it was a case of murder or suicide.