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

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

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

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :ASP.Net

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

View Complete Post

More Related Resource Links

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.


How do I get the userName and passWord sent by a client using http basic authentication in a wcf se


Hello Guys,

I need to get the username and password that my java clients are passing using basic http authentication.

The message my clients are sending is the following:

POST http://localhost:1715/PanelService.svc/PanelService HTTP/1.1<br/>
Accept-Encoding: gzip,deflate<br/>
Content-Type: text/xml;charset=UTF-8<br/>
SOAPAction: "http://br/com/petrobras/operational/services/PanelService/getAverageByBusinessObject"<br/>
Authorization: Basic YWJjZGVmOjEyMzQ1Ng==<br/>
User-Agent: Jakarta Commons-HttpClient/3.1<br/>
Host: localhost:1715<br/>

help needed: Ldap User authentication using userDN and password



Is it possible to authenticate a user using userDN and password? If so, then tell me the syntax.So far i have tried to authenticate using username and password from my c# code using directoryentry which takes the parameters like domainname,username and password. But i need to authenticate using Userdn and password.

Security: Safer Authentication with a One-Time Password Solution


One-time passwords offer solutions to dictionary attacks, phishing, interception, and lots of other security breaches. Here's how it all works.

Dan Griffin

MSDN Magazine May 2008

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. 

Getting windows username using windows authentication

Hi,I am developing one intranet website. Being an intranet application, one of the requirement is to have a single sign on feature. It means that the windows PC username (i.e the "ctrl + alt + delete" username) is going to be the username for the system.How do i fetch that username?I tried the following two ways which are working in debug mode but not on live site.System.Security.Principal.IPrincipal user = System.Web.HttpContext.Current.User;        Response.Write(user.Identity.Name);&Response.Write(Request.ServerVariables["AUTH_USER"].ToString());Both the above method works when i run the page from visual studio.However when i run the page from IIS or any other server, it gives me a blank valuePlease help me as i cannot begin this project without solving this issue

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

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

LDAP - directory entry issue with out user and password using impersonate and windows authentication

Hi All I am using the below code to fetch the user information from LDAP             DirectoryEntry entry = new DirectoryEntry("LDAP://DEV");             DirectorySearcher searcher =  new DirectorySearcher(entry);             SearchResult result;             searcher.Filter = "samaccountname=testuser";             result = searcher.FindOne(); here i am using windows authentication always and along with that when i enable the impersonate = true ,  the code fails at "result = searcher.FindOne();" with message "object reference not set to instance of an object "  also with the same code if i give the username and password along with the impersonate tag >> it works  or if i am using the user and password along with the DirectoryEntry  object then also it will work  but it fails with same user that i gave in impersonate tag / directory entry object with windows authentication enabled  and the  user logged to the application and no username and password tag in directory entry / impersonate tag  Interesting thing is that  in our development server ,  i am able to execute the same code with out user name p

"An exception occured while committing IIS configuration changes: Keyset does not exist" with SP2010

Hi All, After further investigation I found in the log file a couple of these entries: "An exception occured while committing IIS configuration changes: Keyset does not exist (Exception from HRESULT: 0x80090016) ca46ad74-a24e-49f8-ab81-6453b387f93b" Standalone vpc, Win2008R2, SQL2008R2 all pre-reqs was installed successfully and SP2010 was installed with no problems. The above error I get on step three of the configuration. Below is more detail on what it tries to do before the message is logged.(this is from the log file *NOTE i took out my domain and username and replaced with [ ]* --------- Adding [Domain\User] to local group IIS_WPG. ca46ad74-a24e-49f8-ab81-6453b387f93b Adding [Domain\User] to local group WSS_WPG. ca46ad74-a24e-49f8-ab81-6453b387f93b Adding [Domain\User] to local group PerformanceMonitorUsers. ca46ad74-a24e-49f8-ab81-6453b387f93b Attempting to give SE_ASSIGNPRIMARYTOKEN_NAME privilege to application pool user [Domain\User] ca46ad74-a24e-49f8-ab81-6453b387f93b Attempting to give SE_INCREASE_QUOTA_NAME privilege to application pool user [Domain\User] ca46ad74-a24e-49f8-ab81-6453b387f93b An exception occured while committing IIS configuration changes: Keyset does not exist (Exception from HRESULT: 0x80090016) ca46ad74-a24e-49f8-ab81-6453b387f93b Creating new application pool 'SecurityTokenServiceApplicationPool'. ca

SP 2010 Form Based Authentication username begins with "i:0#.w|"

Hello there! For the life of me, i can't figure out why SharePoint keeps putting the phrase "i:0#.w|" infront of everyones username / accounts. Both on mysite and portal sites. A quick bing search revelaed that i am not the only one: http://fangdahai.blogspot.com/2010/06/i0w-is-still-there-in-sharepoint-2010.html. Anyone have a solution to fix this annoying problem? Thanks!

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.

Office SharePoint - Mutual Authentication Failed. The servers password is out of date at the domain

I have a SharePoint Server 2010 site setup with SSL. (https://sitename.com) Whenever someone tries to save an Excel or Word document to the site through Save As or Save To SharePoint they get "Mutual Authentication Failed. The servers password is out of date at the domain controller". The desktop experience feature is installed and the webclient service is running. They also receive certificate is not available and if they wait a little bit or hit OK it will show the directory and not the website like on a regular http site.  

report builder prompts for password with forms authentication


I have implemented forms authentication with ssrs 2008 r2. The problem is when I try to go to report builder it prompts for a user name and password. This doesn't work with the way we have our authentication setup. I have tried adding implementing the following:


but it still prompts for a username and password. Is there a way around this?

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