Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 14. Web > Checking Out a Web Server's Custom Error Pages

Recipe 14.15. Checking Out a Web Server's Custom Error Pages

14.16.1. Problem

You have an application that needs to know what custom error pages are set up for the various HTTP error return codes on a given IIS server.

14.16.2. Solution

Use the System.DirectoryServices.DirectoryEntry class to talk to the Internet Information Server (IIS) metabase to find out which custom error pages are set up. The metabase holds the configuration information for the web server. DirectoryEntry uses the Active Directory IIS service provider to communicate with the metabase by specifying the "IIS" scheme in the constructor for the DirectoryEntry:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial