I have a vb project that was started way back with .net 2. I've upgraded it to .net 4.5 and am now trying to create friendly urls. I've done this before, but always with a new project. I've never tried to add it into an existing one. So, here's what I did.
I added a reference to the microsoft.aspnet.friendlyurls dll
I added this in my global.asax file.
Sub RegisterRoutes(ByVal routes As RouteCollection)
Dim sr As Route
Dim rh As IRouteHandler
sr = New Route("Documents/{*queryvalues}", rh)
routes.Add(sr)
End Sub
Then, in the application start in that file, I added this.
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
RegisterRoutes(RouteTable.Routes)
End Sub
Now, what I want is for the default file in the folder documents to be able to accept the friendly urls. So ...
Go to the complete details ...