DataAnnotationsExtensions icon indicating copy to clipboard operation
DataAnnotationsExtensions copied to clipboard

Url Attribute does not respect Localhost

Open justinsa opened this issue 12 years ago • 1 comments

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.

justinsa avatar Jul 26 '12 18:07 justinsa

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.

justinsa avatar Jul 26 '12 20:07 justinsa