Extending IIS Configuration

Sign in to queue

The Discussion

  • User profile image
    Raj

    Thanx for the Video on how to add Custom attributes to AppHostConfig. I'm using Microsoft.Web.Adminstration 7.0 to read all the Web Services used by the Site. For this, I need to read the system.serviceModel/endpoint/client tag in the web.config of the Site. I'm facing problem in this and need your help...
    My approach is
    Configuration webConfig = site.GetWebConfiguration();
    webConfig.GetSection("system.serviceModel/endpoint");
    The error message : system.serviceModel cannot be read because it is not in schema.
    I cannot add a new custom schema file because it's a Production Server.
    Also, system.serviceModel is not a custom tag
    Using this approach, I can read all ConnectionStrings and AppSettings of the Site.

Add Your 2 Cents