The state body has ruled out the plans for a Paris illegal drug injection site.
The State Council, France's top administrative court, ruled this week that the project -- known in French as a "salle de shoot" -- could not go ahead without changes to the law.
The project would have been the first of its kind in France, though similar sites have been set up in other European countries including Germany, Spain and The Netherlands.
Backed by the Socialist government and the Socialist-run Paris municipal government, the site was aimed at providing better monitoring and support to drug addicts.
The decision will come as a blow to deputy mayor Anne Hidalgo, who had hoped to have the project underway ahead of municipal elections next April in which she is hoping to win the mayor's seat.
Thierry Vidor, a member of a coalition of groups opposed to the project, hailed the decision, saying the plan was "the first step toward the decriminalisation of drugs" and a form of "assisted suicide".