Publishing InfoPath Forms: "The following URL is not valid:…"

I got the above error when trying to publish an InfoPath form. In my case the “problem” was that I had no SharePoint site at the root of the URL – i.e. I only had sites under the /sites/ folder. Smells like a bug to me… and an ugly one at that. I created a…

1