Armstrong filed a lawsuit aimed at preventing the U.S. Anti-Doping Agency from moving ahead with charges that he used performance-enhancing drugs throughout much of his long career.
But within hours, U.S. District Court Judge Sam Sparks in Austin dismissed the 80-page complaint. He said it seemed more intended to whip up public opinion in Armstrong's favor than focus on legal arguments.
Sparks, however, did not rule on the merits of Armstrong's claims and will let him refile the lawsuit.
The lawsuit claimed USADA rules violate athletes' constitutional right to a fair trial, and that the agency doesn't have jurisdiction in Armstrong's case. It also accused USADA's chief executive, Travis Tygart, of waging a personal vendetta against the cancer survivor who won the Tour de France every year from 1999 to 2005.
Armstrong asked the court to issue an injunction by Saturday, the deadline to formally challenge the case against him in USADA's arbitration process or accept the agency's sanctions. He could receive a lifetime ban from cycling and be stripped of his Tour de France victories if found guilty.
Armstrong insists he is innocent.