Thursday, August 18, 2011

How to Restore Default Error Pages in IIS7

Well it happend to me today, I accidently deleted the Error page 403!


It says inherited, so I tried to find how I can inherite from the top site, no luck. I even removed HTTP Errors and re-added...no luck
I manually created 403, its "Entry Type" was set "local" and I got 500 error when I try to open the site.


Finally I looked at the web.config


howa,,,there it is


I removed it, and refreshed the iis...yahoo
I got my 403 back!


That was dumb, but I am glad it is fixed!

7 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This helped. Thanks for this post !!

    ReplyDelete
  3. I have followed your steps for Default Web site where I had local for 404 as I had problem there. I have closed and reopened IIS but of no use. Should I have to restart the system.?

    ReplyDelete
  4. It worked finally. Please ignore my above post.

    ReplyDelete
  5. Can I simply say what a relief to find someone who truly knows what theyre speaking about on the internet. You definitely know how you can bring an issue to mild and make it important. More individuals need to learn this and perceive this side of the story. I cant consider youre no more well-liked because you definitely have the gift. online casinos for us players

    ReplyDelete