warning message stating gas cap not on w/ check engine light on 2007 Mercedes-Benz R350

A warning for loose gas cap came on 2 different times. after the second time check engine light came on. Was wondering what might be the problem.

1 answer
Were you getting gas with the engine running when the light came on? If so, that will trigger the gas cap warning and could possibly set a check engine light. Other wise the gas cap could just be bad and not sealing properly. Your Mercedes-Benz dealership will be able to check your code/codes for you, diagnose the problem, and repair it. Here is a link to help you find the closest service center: http://repairpal.com/directory.