Following Mike Ormond’s blog entry "Using ASP.NET Routing Independent of MVC" produced a bit of consternation for me when I followed his example and after installing the 0423 Preview of the MS Dynamic Data Runtime and Templates Library to obtain the System.Web.Routing dll discovered that creating any webpage in Visual Studio 2008 would give me the following error and warning in regards to the page directive:
- Error: Length cannot be less than zero. Parameter name: length
- Warning ASP.NET runtime error: Length cannot be less than zero.
The solution for now was to uninstall the preview and reference the System.Web.Routing dll directly.
A MSDN Forum Posting shows other people have been affected by installing the MS Dynamic Data Runtime and Templates Library.
The actual demo works great, a URL like http://localhost:57648/StandaloneRouting/Page2 points to http://localhost:57648/StandaloneRouting/Page2.aspx, making it look more “Web 2.0 like”.