The judge ruled that Sheridan's case couldn't proceed because the actress should have exhausted her claims to a labor commissioner before pursuing a trial.
Sheridan was seeking a retrial on her claim that she was terminated from the show because she complained that show creator Marc Cherry struck her on the head on the set in 2008.
In 2012, a jury deadlocked 8-4 in favor of Sheridan's lawsuit alleging ABC had retaliated against her and cut her Edie Britt character due to her complaints about Cherry.
ABC denied it fired Sheridan or retaliated against her. Cherry and other show executives previously testified that the decision to kill off the role was made before the incident with Cherry.
Cherry denied hitting the actress, claiming he tapped her on the head for artistic direction.
Sheridan's lawyers say they plan to appeal. The actress had been seeking roughly $6 million from her former employers.
An appeals court ruled in August 2012 that ABC and Touchstone Television hadn't wrongfully terminated Sheridan from the show. However, the ruling allowed her to keep pursuing retaliation claims.
Disney is the parent company of Touchstone Television Productions and ABC7.