asp.net Custom Error <p>I am rly confused about this. I tried following all kind of tutorials but cant seem to get it working right I dont know what I am doing wrong sinse its the exact same as those vids I Have seen.</p> <p>I tried this</p> <p>web.config </p> <pre><code>&lt;customErrors mode="On" defaultRedirect="Error.aspx"/&gt; </code></pre> <p>changing the application_error under Global.aspx.cs</p> <p>where it ends out with a respons redirect also tried server transfer but none of them leads me to my Error.aspx</p> <p>does someone know a good simple tutorial on how to set one up? or someone who can tell me step by step what to do?</p> <p>I tried following the first part of this <a href="http://www.youtube.com/watch?v=6wObqULbm5g" rel="nofollow">guide</a> sinse that is what I wanted. </p> <pre><code> protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); Server.ClearError(); Response.Redirect(@"~Error.aspx"); } </code></pre> <p>but it tells me it goes into an infinite loop.</p> <p>I want to send the user to a page called Error.aspx where they can see a custom error screen.</p>