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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:38:08+00:00 2026-05-11T13:38:08+00:00

There are two projects in one VS solution: client(wpf app) and а wcf service

  • 0

There are two projects in one VS solution: client(wpf app) and а wcf service lib.
I’m using Message security and a custom AspNetMembershipPrivider on th server side to validate username and pass.
As i’m not using Windows security, I had to use certificate on server to establish secure chanell, and what i did:
– opened my local IIS manager and added self-signed certificate named likemy dev machine.
– checked that this certificate appeared in Certificates snap-in under Personal-Certificates
– configured wcf .config to point to that certificate.
– started my client app in VS (and VS also started wcfhost app for my wcf lib)
Everything was fine, wcfhost worked fine and my services worked ok until I rebooted. After reboot wcfhost stated complaining:

 The certificate 'CN=xxx' must have a private key that is capable  of key exchange. The process must have access rights for the private  key. --->  System.Security.Cryptography.CryptographicException: Keyset does not exist 

Only thing what helpes is recreating my certificate, and again until reboot. As i stated above my service is running under my user account(local admin), so I don’t think that permissions to my c:\Users\xxx\AppData\Roaming\Microsoft\Crypto\RSA\ files is the issue.

The reason I’m using iis manager to create certificated and not makesert etc. is because I want tobe sure everything will be working on my shared osting account I have (there is on option in hosting panel of creating self-signed certificates).

Can anyone assist with this? Thanks

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T13:38:09+00:00Added an answer on May 11, 2026 at 1:38 pm

    I solved the issue.
    I’m running Vista on my dev box with UAC on. A week or so ago I changed the way I start Visual Studio and apparently I didn’t notice that I was working in VS started without an option ‘Run as administrator’. Thats why WcfHost lounched by VS also had limited rights. My bad, I rarely restart VS, it is common practice having a VS running for a week or two with for example unreal3 lunched simultaniosly.

    By th way can anyone say will I have problems with access rights for the certificates on a shared hosting(IIS7) with Message security? or shall I target Transport security.

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

Sidebar

Ask A Question

Stats

  • Questions 103k
  • Answers 103k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In production, you'll just have the HTML generated from your… May 11, 2026 at 8:25 pm
  • Editorial Team
    Editorial Team added an answer The typical way to handle this is with an ajax… May 11, 2026 at 8:25 pm
  • Editorial Team
    Editorial Team added an answer The most elegant solution found so far is this: On… May 11, 2026 at 8:25 pm

Related Questions

We code in C# using VS2008 SP1. We have a server that runs Team
We have tremendous problems with Visual Studio (2008, if that matters) locking up and
As part of our current database work, we are looking at a dealing with
During my apprenticeship, I have used NHibernate for some smaller projects which I mostly

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.