Full stop / period in URL breaks extensionless URL ... but only on release
Developing an application using MVC-style extensionless URL's. One of the pages has a url that sometimes contains an email address. On my local machine this works fine. However when I publish to the test server, trying to access this URL yields a 404 error, unless you take the full stop out, in which case it routes as expected开发者_StackOverflow中文版.
I've tried adding this to the web.config file:
<httpRuntime relaxedUrlToFileSystemMapping="true"/>
But it has no effect
Any ideas what might be causing this? Even if I could find a more helpful error than just a 404 it'd be a start!
Cheers, Matt
I've been banging my head against a wall with this today too - I found the answer was to add a trailing slash to the call.
First thanks as your question set me looking at something that it was on my todo list to solve for myself. Second, while I was looking at that, I came across the requestPathInvalidChars
attribute of the httpRuntime
config element which looks like it should be what you want here (and what I want elsewhere).
精彩评论