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 7583357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:39:28+00:00 2026-05-30T18:39:28+00:00

In my client application I have to use web service UserNameOverTransport, so I need

  • 0

In my client application I have to use web service UserNameOverTransport, so I need in client set username and password like:

client.ClientCredentials.UserName.UserName = “account”;
client.ClientCredentials.UserName.Password = “password”;

Is it some best practices where store username and password?

From my point of view it isn’t good idea to store credentials in config file.

[Update]
When I asked this question I though that WCF provide some standard ability to store credentials in config file or have ability to setup with help of endpoints behaiviours.

The example which I looked for is solution by the following link:
http://blog.shutupandcode.net/?p=22

  • 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-30T18:39:30+00:00Added an answer on May 30, 2026 at 6:39 pm

    If you want to store credentials in the app.config/web.config, you can encrypt them using the ProtectedData class or a ProtectedConfigurationProvider. See the following links for more info (ordered from least detailed to most):

    http://geekswithblogs.net/afeng/archive/2006/12/10/100821.aspx

    http://weblogs.asp.net/jgalloway/archive/2008/04/13/encrypting-passwords-in-a-net-app-config-file.aspx

    http://msdn.microsoft.com/en-us/library/89211k9b%28v=vs.80%29.aspx

    http://msdn.microsoft.com/en-us/library/53tyfkaw%28v=vs.80%29.aspx

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

Sidebar

Related Questions

I have a web service deployed and ready to use. The client application is
I need to build a web service application for my client, using the following
I have a WSE 3.0 based web service, and a WinForms client application that
In our application,we have a web service which wll return images to the client
I have a web service that will be consumed by some application (web site
I have written an application that connects to a SSL web service (including client
I have JavaScript application, where I use client-side templates (underscore.js, Backbone.js). Data for initial
I have a client-server Silverlight application, which is use Socets. I have server appliaction
I have a .NET application that I want to use as a client to
I have a client application that sets some parameters and report source on a

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.