PHILADELPHIA -- Bill Cosby's criminal sexual-assault case appears to be headed toward an evidence hearing after a judge denied his latest effort to throw the charges out.

In a ruling Tuesday, the judge who refused to dismiss the case earlier this month denied Cosby's appeal of that decision.

The 78-year-old TV star is accused of drugging and violating an ex-Temple University employee at his suburban Philadelphia home in 2004 and could get 10 years in prison if convicted.

Get Breaking News Delivered to Your Inbox

The defense insists Cosby had a promise from a previous district attorney that he would never be charged over the 2004 encounter.

Montgomery County Judge Steven O'Neill, though, found the evidence of such an agreement lacking after hearing from the ex-prosecutor and others at a two-day hearing. He said the issue doesn't warrant an immediate appeal that would delay the scheduled March 8 preliminary hearing.

"An immediate appeal from these orders would not materially advance the ultimate termination of the matter," the judge wrote in a brief order.

A spokesman for Cosby's lawyers said it was unclear if they would appeal to the state Superior Court.

"Today's ruling was not a rejection of Mr. Cosby's appeal which is not within the jurisdiction of the Court of Common Pleas but instead will be filed in the Superior Court of Pennsylvania," a statement said. "Today's ruling denied our request for the lower court to amend its order denying Mr. Cosby's Habeas Petition to include specific language certifying the appeal."

Cosby's lawyers have argued that the charges stem from a political feud between former District Attorney Bruce L. Castor Jr., who had declined to arrest Cosby a decade ago, and Kevin Steele, who invoked the case as he campaigned against Castor last fall. Steele won the race for district attorney and filed charges against Cosby in December, days before the filing deadline expired.

Dozens of women in recent years have come forward and accused Cosby of sexual impropriety spanning decades. Cosby, who played Dr. Cliff Huxtable on "The Cosby Show" from 1984 to 1992 and has been married for decades, has denied the women's accusations. The statute of limitations has expired in most of the cases against him.

Cosby, whose legal residence is in western Massachusetts, remains free on $1 million bail.