Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7446371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:17:56+00:00 2026-05-29T12:17:56+00:00

How I can comment element of config file during the installing? I.e. I install

  • 0

How I can comment element of config file during the installing?
I.e. I install WCF service to IIS. If IIS does not have https protocol binding I need to comment https endpoints in Web.config.
Else do not comment this endpoint.

  <service name="MyServer.MyDataAccessRESTService" behaviorConfiguration="MyServer.MyDataAccessRESTServiceBehavior">
    <endpoint binding="webHttpBinding" contract="MyServer.IMyDataAccessRESTService" 
              bindingConfiguration="webHttpBinding0" behaviorConfiguration="MyDataAccessRESTServiceBehavior" 
              address="http://localhost/svc2Web/svc2rest.svc"></endpoint>
    <endpoint binding="webHttpBinding" contract="MyServer.IMyDataAccessRESTService"
              bindingConfiguration="webHttpBinding1" behaviorConfiguration="MyDataAccessRESTServiceBehavior"
              address="https://localhost/svc2Web/svc2rest.svc"></endpoint>
  </service>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:17:58+00:00Added an answer on May 29, 2026 at 12:17 pm

    I would do this the other way around. Let the default version of web.config omit the HTTPS endpoint. In case HTTPS is on in IIS, add a new element to web.config using XmlConfig capabilities. You can find the sample of how to do this here and here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Rest service: [WebHelp(Comment = Sample description for GetData)] [WebInvoke(Method=POST, UriTemplate
I have a function where I can add articles and users can comment on
I have to store blog style comments in a database. Each comment can have
I'm trying to figure out how I can have a comment header automatically added
I have seen the following code in a website... what does this mean?.Can i
I have an element which displays a comment form, the action is comments/add. If
I have a simple comment section where users can post comments to another users
How can I remove certain element inside html()? For instance, I have this html
If I integrate Facebook Connect on my website so Facebook users can comment on
I'm trying to write a commenting system, where people can comment on other comments,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.