.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How can I avoid sending UserName/Password for every call?

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :WCF
Hi I am using UserName/Password authentication with X.509 certificate in my WCF application. In this scenario I have to set UserName/Password credentials on every call that means I have to keep UserName and Password somewhere in my client application (ofcourse after user loged in). I am not sure that's a good idea. Does any body know how can fix this problem? I want user to login one time and afte that my client application can communicate securly with my WCF services. Is it possible? Thanks

View Complete Post

More Related Resource Links

Password recovery by entering email not username



I am using the ASP.Net password recovery control.  By default the user needs to enter their username before an email gets sent out to them.

If it possible instead of entering the username, email is used instead?  Alot of my users forgets their username but not email.


Accessing Username, password, roles in xml file


Currently I am storing my username and password (passwordFormat="SHA1") credientails in my web.config.  I would like to figure out how to access them in an xml file that I have stored in my App_Data directory rather than the web.config file because I do not want my application restarting everytime I manually add a user (small list of 5 authorized users for the CMS section).

Here is what my web.config section looks like:


<authentication mode="Forms">
      <forms name=".Administration"

How to Pass UserName & Password to codebehind page using jquery

here is login form I would like to use.
Right now it is not communicating with my codebehind page.
How do I modify the jquery  login code to post the username and password to the codebehind?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="styles/chop1.css" />
<script type="text/javascript" src="js/chopjs/jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="js/chopjs/three.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/ie_png_fix.js"></script>

how do i create a windows form application login for to validate username and password from sql serv

 I would like to know how I can create a login form for my windows form application. The login form must be linked to a SQL server 2005 express edition database (in which the username and passwords are stored). The login form must validate the user using the database and allow them to access the program. 

how check username and password store in database

hi i have login page. how check username and password store in database . plz reply with code.i did it by form authentication b ut it not work.

Get Login in Application without Entering username and password in Digest Authntication.

Hello Frd'si am using Form authntication and Digest authntication mode. Foe getting Logon computer username i m using digest authntication mode. But when i browse website it's asking for username and password. while already windows login with the same username.I understood that in this auhtntication mode it's required. But r there any configuration with it i am not getting this Prompt ? Any group ploicy ??For IE i have added website into trusted zone but still it's asking for username and password.R there any other way i getting Computer logon name in asp.net application. There are But only work when i run from Editor from IIS it's not retuning value.If you give me some hint or articals link then i m very thnak ful to you.Thank you.

Authentication (login - username/password)



I have a website developed in ASP.NET created by someone else, sitting on another server... until now... a simple(ish) setup with login to update content.

The site was zipped up and I was told it would be a simple case of uploading all the files onto the new server.  I've managed to upload the site and it works fine... but I can't access the editing pages as it will no longer accept the username and password when I go to login.

The host server is running ASP.NET v4 and IIS v7.  Hosting is with godaddy.com so I'm also getting used to their way of doing things.

Hope someone can help.


Find User Password by Username Before Login


hi guys,

I have only username. and want to check and grab the password from the database. It is BEFORE LOGGING IN. so I don't think the build-in asp.net functions could be used, right?

thanks a lot!!

Keyset does not exist WCF +SSL + Username & Password authentication


My hosting is DiscountASP.NET

 I get Error "Keyset does not exist".

Please, see error on page: http://www.healthbucket.com/HealthbucketWCF/wcfUser.svc

Section in my web.config of wcf looks:
<serviceCertificate findValue="www.healthbucket.com" storeLocation="LocalMachine"
storeName="My" x509FindType="FindBySubjectName" />
<userNameAuthentication userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="UsernameValidator, App_code" />

I think there are two errors:
1. CryptographicException: Keyset does not exist
2. The certificate 'CN=www.healthbucket.com, OU=Domain Control Validated - RapidSSL(R), OU=See www.rapidssl.com/resources/cps (c)08, OU=GT10747045, O=www.healthbucket.com, C=IL' must have a private key that is capable of key exchange. The process must have access rights for the private key.]

 * I have SSL installed on my hosting and configuration is correct.

I ask technical support of DiscountASP.NET and they tell me &qu

Remote copy and execution given admin username and password for remote machine



I have an application (.exe files) that I need to install on remote machine. For this I need to copy .exe file from my machine A remote machine B  and execute it remotely.

I have local administrative privilleges on remote machine.

For e.g. Username & password on remote machine : "remoteAdmin" , "remotePassword".

However this "remoteAdmin" account is not present in my local admin group on my machine A.

Is there a way to do this ?

Also on remote machine B firewall may be on or off.

I tried this using WMI but there were some issues due to firewall.

I can do this using File.Copy method of System.IO namespace but it needs "remoteAdmin" account to be present in my local machine's (A) Administrators group. I have even tried creating new user account and adding to admin goup using DirectoryServices but I don't know how to set domain for the new account.

Also for remote execution I tried using wmic but it did not work when firewall was on. Iteried remotely running notepad.exe. It works if firewall is off but I cannot assume that firewall would be always off.

So , is there a way to copy file and remotely execute them if I have admin username and password for remote machine ( preferable using C++ or C#) ?

 Also I cannot

Visio File Type Requesting for Username and Password


Hello all,

PS2007 to PS2010 migration went well in a Test Environment, but only one issue remains. When opening Visio file for editing, it constantly requests for username and password. I have ticked 'Remember Password', but that doesn't seem to work. Opening it in Read-Only mode is fine.

Please note that I asked this question in the Project Server Upgrade Forum, but I was told it is related to SharePoint. Can someone please assist?

Thank you,


Search Page in Firefox Requesting Username and Password Repeatedly on Classified Site


Hi,  I don't know if this is an appropriate place to ask for help on this one, but here goes.  Over the past two weeks or so, I've been getting feedback from users on my site that a popup box is interferring with their use of my search page.  From the research I've done, it appears only Firefox users are having this problem.  I haven't changed my site, so I can't figure out why this is happening.    Has anyone successfully corrected this problem.  It's costing me traffic, so I have to figure this out.  My site is based on the classified starterkit.  Thanks.

Change UserName and Password Requirements



 How do i change the default user name and password requirements.   I wanna make the user name the person email address and i don't want it case sensitive.. I wanna make the mininum password to be 4 characters or numbers case sensitive.  The maxinum password can be 10 characters or numbers.



An exception occurred when trying to issue security token: The security token username and password



  I get a problem authenticating people in Sharepoint 2010 LDAP provider.

  Right now, I can successfully config the central admin for LDAP provider, (I can search people that in LDAP server,assign ldap people without problem). Also I can search LDAP people in my site. Then I tried to login using ldap username and password, it shows "An exception occurred when trying to issue security token: The security token username and password could not be validated.."

  First, I thought maybe there were some typo in my site web.config, so I enabled the windows login, log into my site using my windows account, there, I can search LDAP user in my site with no problem. So I believe that my site web.config is alright. The only thing left is the STS.But I am not sure what could be wrong , because membership and role part are just simple copied and pasted from my site web.config.

  Here is the web.config for STS. Please Help. Thank you.

<?xml version="1.0" encoding

how to ValidateCredentials (userName, password), for sharepoint server 2007 through programmaticall



i have two windows(forms) one is mainwindow,which is having allcontrols.
                            another one is loginwindow,
my issue is ...
if you run appli first loginwindow will display,here i need to check either
login credentials(userName, password) are valid or not,if valid i need to display

in my issue i don't know how to check the login credentials for sharepoint server 2007  through programmatically from windows forms application?

please,give me some code....

Thanks for any help

how to login in my portal using the user's username and password in active directory


i have a username and password in my portal... i want to connect to the active directory to verify the username and password of the user?

using c# .net

anyone can help me?

Invalid or missing username or password. - Installing SQL 2008 on Server 2008


I'm new to SQL 2008 and while installing I receive the following error during as I'm installing. 

Invalid or missing username or password. To continue, provide valid credentials for the SQL Server Agent service.


I attened the SQL/Server/VS 2008 launch in LA and was given time bomb copies of SQL/Server 2008. 

On a new machine I installed Server 2008.  (It't a stand alone machine, no AD.)

After Server 2008 installation was completed I tried to install SQL 2008.

I'm hung on the install on the user name/password page.


I'm assuming the account I specify does not have to be created, SQL will do it, or is that my problem?


Can you offer any assistance?



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend