• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3876
  • Last Modified:

Restore Default Error Pages for site in IIS7

Can the default error pages be restored for a site in IIS7
The 500 error for asp pages was changed in the default website which afected all the websites.

I tried to fix the specific site I am working on and deleted the custom 500 error page that was there, amd changed it to
%SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>\500.htm
 which is the same as the rest bar the number at the end and in Entry Type is says Local instead of inherited.  

I have set it to show detailed error messages, but when I hit an error on a page all I get is:

The page cannot be displayed because an internal server error has occurred.
0
harris9999
Asked:
harris9999
1 Solution
 
samsymonCommented:
try resetting iis.

iisreset /noforce <your machine name.>
0
 
harris9999Author Commented:
Cheers but managed to figure it out.  
If you make a change manually it creates a web.config file in the directory of the website.  
Once I deleted that file it went back to default settings.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now