How can I set 404 and other error pages using web.config? I have tried adding following block in web.config.
Try putting this in the system.webServer section of your Web.config