Eva Longoria endured a wardrobe malfunction over the weekend at the Cannes Film Festival.

The rainy weather was not in the actress' favor as she dragged her dress on the red carpet. Longoria looked elegant and glamorous in a green Atelier Versace gown that included a high spilt on Saturday, according to reports. 

As the former Desperate Housewives actress climbed up the stairs to make her way towards the theatre, she grabbed the hem of the dress to avoid it from getting wet from the rain. As she tugged tightly to the dress, she accidentally exposed in-between her legs, revealing that she had no underwear.

Unfortunately for Longoria, the entire malfunction was caught on camera.

See the malfunction here:

Unfazed by the incident, the actress walked the red carpet and posed for cameras.

Later in the evening, Longoria addressed the malfunction and tweeted to her fans another she wore to a different Cannes event.

"Here's my dress for tonight," Longoria wrote. "No wardrobe malfunctions tonight!!!"

The actress seems to be a victim of wardrobe malfunctions. At a Golden Globes after party in January, the actress suffered a nip slip with she leaned over to unravel a skirt from her heels.

Longoria is currently preparing to launch a Hulu original series called Mother Up! The series features the actress as a business executive attempting to transition to suburban life.

The 38-year-old actress, recently revealed in April that after she and husband Tony Parker divorced back in 2011, she lost her appetite and lost a lot of weight.

"People kept saying, 'You look amazing. Divorce agrees with you. And I was like, 'I don't feel good. I have no energy.' I didn't know I was depressed. I mean, I knew it was a sad moment in my life, but I wouldn't categorize myself as depressed," she said.

Despite the divorce, Longoria is still a basketball junkie. When a fan asked her on Twitter if she was still rooting for the San Antonio Spurs, Longoria answered: "Yes I am! Go Spurs Go!"