son of james fraser, he was born in prestbury, gloucestershire on 8 may 1824 and was educated at kings college and addiscombe before joining the bengal engineers in 1843. he saw action in the sutlej campaign in 1845–46, in the punjab in 1848–49 and during the second anglo-burmese war in 1852–53 under general scudamore winde steel. he worked on the construction of lighthouses on the burmese coast and served as chief engineer in the northwest provinces. he also worked with the indian railways serving as chairman of the railways of the nizam, rohilkund and kumaon. he was created a companion of the order of the bath in 1880.