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:

huhu78 said...

Useful. Thx.

Bart van de Griendt said...

Thanks! Worked for me too.

Bart van de Griendt said...
This comment has been removed by the author.
Dinoo said...

This helped. Thanks for this post !!

Dharmavarapu Abhiram said...

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.?

Dharmavarapu Abhiram said...

It worked finally. Please ignore my above post.

Gray said...

Thanks!