10.13. Valid URL Characters

Previous versions of ASP.NET limit accepted URLs to a specific set of characters. The following characters were considered invalid in a URL: <, >, &. You can use the new requestPathInvalidChars property to specify invalid characters. The following example makes a, b, and c invalid in requests (which isn't too useful but demonstrates the feature):

<httpRuntime requestPathInvalidCharacters="a,b,c">

NOTE

The Microsoft documentation states that ASP.NET 4.0 will reject paths with characters in the ASCII range 0x00 to 0x1F (RFC 2396).

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.