DataAnnotationsExtensions
DataAnnotationsExtensions copied to clipboard
Url Attribute does not respect Localhost
The following URL will fail the UrlAttribute regular expressions: http://localhost:63399
http://localhost:63399 is a valid URL on a local machine under IIS. This is required for being able to test a certain solution locally under the ASP.NET Dev Server 10.
After some further though I realized what the full implications of this are. The UrlAttribute does not respect any local network name, e.g., anything addressable by name on a private network that does not need a dot for referencing. It is still a URL though and should be supported.