IIS 7.5 on Windows Server 2008 R2 pop ups with “Value does not fall within the expected range” when trying to start a website with IDN-domain.
Since I live in Denmark, I from time to other get confronted with IDN-domains (domain names with international characters).
An IDN domain is encoded in Punycode, which transforms “små-biler.dk” to “xn--sm-biler-b0a.dk”. The encoded domain is the one registered at the hostmaster and in DNS. It’s also the encoded value, that goes into the HTTP header.
The logic solution was to insert the encoded part into the website’s Bindings in IIS 7.5. However, this is the part that triggers the error and makes it impossible to start the website.
My solution was to use the local variant “små-biler.dk” – and remove the Punycode-encoded IDN domain name.