Internal difference in a diode
Olin alluded to this &mdash; if you make contact with the P and N regions of the diode in order to measure the voltage, those semiconductor-to-metal contacts become junctions, too, and the total potential of those extra junctions will exactly cancel the potential of the original P-N junction.