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

  • Home
  • SEARCH
  • 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 7790831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:42:29+00:00 2026-06-01T21:42:29+00:00

How can I dynamically set the Security mode like NONE when my nettcpbinding is

  • 0

How can I dynamically set the Security mode like NONE when my nettcpbinding is set in c# code on the client side and on the server my binding is defined in the app.config? How can I change the server`s app.config from the client?

WCF server endpoint:

 <service name="Test.ServiceProvider.MyService">
            <endpoint address="" binding="netTcpBinding" contract="Test.Contracts.IMyService">
              <identity>
                  <dns value="localhost" />
              </identity>
            </endpoint>
        <endpoint address="mex" binding="mexTcpBinding" name="NetTcpMetadataPoint" 
         contract="IMetadataExchange">
        </endpoint>
        </service>

WCF client endpoint:
the Uri is:

net.tcp//localhost:12345/MyService

    1.) What else should my 2nd address be for the 2nd NetTcpBinding?
I guess I just change the MyService to MyEncryptedService and use the same interface? But then I have 2 equal classes/implementations of one interface. Thats stupid actually.
    2.) How does the client binding find its server binding?
  • 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-06-01T21:42:32+00:00Added an answer on June 1, 2026 at 9:42 pm

    In short you can’t. The server exposes the service and the server dictates its security settings. It will either require security or not but this configuration is done when the server starts hosting of the service and cannot be changed without “stopping” the service. The only way to change it from the client is through some “administration” which will change configuration of the service and restart it but this will have global scope.

    If you need both secured and unsecured communication you need to expose two different endpoints. One for secured operations and one for unsecured (if operations on both endpoints are different you should also use different service contracts).

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

Sidebar

Related Questions

I have a Query that the datasources it is set to can change dynamically.
How can I set label's border which is dynamically generated (Not from Interface Builder)?
I want to set up a single virtual host that can dynamically handle all
I would like to implement a thread pool in Java, which can dynamically resize
Using jQuery , how can I dynamically set the size attribute of a select
I am using the following code to dynamically set a href link to open
How can I dynamically set @class in an ActionLink? I want to do @Html.ActionLink(Pricing,
How can I dynamically set the gravity ? Bitmap bmp; im = new ImageView
How can I dynamically set a stand alone(not in gridview) hyperlink control's NavigateUrl property
How can I dynamically set the image size ratio depending on the returned image

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.