all the url are similar "http://localhost:43968/Sites/Default.aspx", which has a Sites.
I right click the Default.aspx, it shows that way.
but your way is "http://localhost:43968/Default.aspx"
I open your source eg: ch18, it also shows:
http://localhost:16883/Chapter%2018/Defaultt.aspx
I trace my code, it run to Error404.aspx.cs
Code:
public partial class Errors_Error404 : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Status = " 404 Not Found";
Response.StatusCode = 404;
}
}
I set break at Response.Status="404 Not Found"
it run to here, but after step
it become to:
Server Error in '/Sites' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Sites/Defaultt.aspx
If I run your code ch18, it could go to Error404.aspx
Maybe I should compare the two folder, but it's not easy.