Volvo S40

I have a 2007 Volvo s40 that wont start in extreme heat! When its cool it runs fine, and I had to let it cool down for close to two hours one day! Anyone know what could be causing this?