Note that there are some explanatory texts on larger screens.

plurals
  1. PO"The resource cannot be found." error when there is a "dot" at the end of the url
    primarykey
    data
    text
    <p>I'm using ASP .NET MVC Beta and I get the HTTP 404 (The resource cannot be found) error when I use this url which has a "dot" at the end:</p> <p><a href="http://localhost:81/Title/Edit/Code1" rel="noreferrer">http://localhost:81/Title/Edit/Code1</a>.</p> <p>If I remove the dot at the end or the dot is somewhere in the middle I don't get the error.</p> <p>I tried to debug but it I get the error from "System.Web.CachedPathData.GetConfigPathData(String configPath)" before ProcessRequest in MvcHandler.</p> <p>Is "dot" not allowed at the end of a url? Or is there a way to fix the route definition to handle this url?</p> <hr> <p>For an example: I have a table named Detail1 [Id(integer), Code(string), Description(string)] which has FK relationship with Master1 through it's Id column. Whenever I select a record of Master1, I also select it's Detail1 record to get it's Code field. In order to not to make this join everytime (since usually there isn't only one detail, there are more than one) I choose not to use Id column and I make Code PK of Detail1.</p> <p>But when I get rid of Id and use Code as PK then my routes also start to work with Code field, like: Detail1\Edit\Code1</p> <p>This Code can have anything in it or at the end, including DOT. There are cases where I can prohibit a DOT at the end but sometimes it's really meaningfull.</p> <p>And I'have also seen this <a href="http://weblogs.asp.net/scottgu/archive/2008/04/16/asp-net-mvc-source-refresh-preview.aspx" rel="noreferrer">post</a> that routes can be very flexible, so I didn't think mine is so weird.</p> <p>So that's why I do something so non-standard. Any suggestions?</p> <p>And also why it's so weird to have a DOT at the end of a url?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload