Cargo pants may be acceptable in certain formal events depending on the dress code. For example, if the invitation states "business casual", then cargo pants could be an option. However, for more traditional and upscale events such as weddings or galas, wearing cargo pants would not be appropriate unless otherwise stated.