{"File does not exist."}
which has actually occurred in the source code at
protected void Application_Error(Object sender, EventArgs e) { HttpException Error = Server.GetLastError() as HttpException; Session["Error"] = Error; Response.Redirect("Error.aspx", true); }
The error by itself is self explanatory that says a file is missing and might be because of an .aspx, .gif, .js file missing or does not have permission to read the file.
Well finding the cause for this might look daunting when you see it. But its very simple, just follow these steps :-
1. Set a breakpoint at the Server.GetLastError()
2. Now open quickwatch
3. Type Request.CurrentExecutionFilePath
this should give the file that is missing. Also this might generally occur at places such as binding a data grids where an image is bound to a column.
The first rule of intelligent tinkering is to keep all the pieces. -Aldo Leopold
0 comments:
Post a Comment