<p>I get a 404 response from .Net MVC when I try to make a request where my search term ends with a <code>.</code> (period). This is the route that I'm using:</p>

<pre><code>routes.MapRoute(
                "Json",
                "Remote.mvc/{action}/{searchTerm}/{count}",
                new { controller="Remote", count=10}
            );
</code></pre>

<p>The search works fine with a <code>.</code> inside the search term, it just cannot end with it.  Any thoughts on how to route this search request?</p>

If you are using .NET 4.0, you can set this flag in the system.web section of your web.config and it will be allowed:
```
```
<httpRuntime relaxedUrlToFileSystemMapping="true" />
```
```
I've tested it and it works.
Haack
has an explanation of it.