Here in Sweden it's possible to be issued a temporary passport at our two major airports (ARN & GOT) should you show up without a valid one. This process takes aproximately 20 min and will set you back approx $100.
Yes I admit it, I had to go through this once when work travel had become routine.