To fix the problem, write the following line on the Page_Load page.
if (String.IsNullOrEmpty(Request.QueryString["aspxerrorpath"])) return;
.Net 4.0 looks at null, empty, or white space in more detail, use it as shown in the following line:
if(string.IsNullOrWhiteSpace(Request.QueryString["aspxerrorpath"])) return;
This will not trigger your next statements (your business logic) if the query string does not have an aspxerrorpath.
Imran Rizvi Dec 30 '11 at 10:43 2011-12-30 10:43
source share