Lawyers for Bill Cosby filed a motion on Thursday in a renewed effort to have criminal sexual assault charges against him dismissed. They argued that the delay of more than 10 years in bringing charges against him, among other issues, meant that prosecutors in Pennsylvania were denying him the right to a fair trial.

The filing, in the Court of Common Pleas in Montgomery County, Pa., repeated some arguments Mr. Cosby’s lawyers have already made, including that a former district attorney promised in 2005 never to prosecute Mr. Cosby, in order to allow him to testify in a civil suit brought by his accuser Andrea Constand, a former Temple University employee.

That civil case was settled. But in February, Judge Steven T. O’Neill ruled that prosecutors were not bound by the former district attorney’s decision, and he allowed the case to go forward. He has since set a trial starting date of June 5.

Mr. Cosby’s lawyers argue that the decision by a federal judge to unseal excerpts from Mr. Cosby’s testimony in the 2005 civil case — in which he admitted giving drugs to women in pursuit of sex — was improper, and accused the current district attorney, Kevin R. Steele, of political posturing and a delay of many years in bringing the charges in the case of Ms. Constand, who said that Mr. Cosby drugged and molested her at his suburban Philadelphia home in 2004.