Microsoft Knowledge Base Email Alertz

KBAlertz.com: (840784) - Explains the cause for the error that occurs when the provider name in the Cryptographic Service Provider contains extended characters. To resolve this, make sure that the provider name contains only ASCII characters.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 840784 - Last Review: November 27, 2007 - Revision: 2.4

You may receive the "The keyset is not defined" error message when the provider name of a CSP contains extended characters

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you.Visit the Windows Vista Solution Center

SYMPTOMS

If you try to establish a virtual private network (VPN) connection by using a smart card where the provider name of a custom Cryptographic Service Provider (CSP) contains extended characters, you may receive the following error message:
Error 0x80090019: The keyset is not defined

CAUSE

This behavior is caused when the provider name of the CSP is converted to Unicode characters by using the MultiByteToWideChar function that is present in the kernel32.dll file. The extended characters in the provider name may be lost during this conversion, and the provider name is converted incorrectly.

RESOLUTION

Make sure that the name of the CSP contains only ASCII characters.

STATUS

This behavior is by design.

MORE INFORMATION

Generally, the MultiByteToWideChar function accepts CP_UTF8 as an input format. The CPGetProvParam function returns the data about the CSP that is passed to the MultiByteToWideChar function. When the CPGetProvParam function returns a format other than CP_UTF8, the returned provider name is incorrectly converted.

The Microsoft Crypto API does not support Unicode very well. Also, there is no mechanism to return the code page that the CSP uses. Therefore, the behavior of the CPGetProvParam function may be inconsistent when it is used.

REFERENCES

For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Cryptographic service providers
http://msdn2.microsoft.com/en-us/library/aa380245.aspx (http://msdn2.microsoft.com/en-us/library/aa380245.aspx)
Virtual private network connections
http://msdn2.microsoft.com/en-us/library/aa382345.aspx (http://msdn2.microsoft.com/en-us/library/aa382345.aspx)
CPGetProvParam
http://msdn2.microsoft.com/en-us/library/aa378208.aspx (http://msdn2.microsoft.com/en-us/library/aa378208.aspx)
MultiByteToWideChar
http://msdn2.microsoft.com/en-us/library/ms776413.aspx (http://msdn2.microsoft.com/en-us/library/ms776413.aspx)

APPLIES TO
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Embedded
Keywords: 
kberrmsg kbprovider kbcrypt kbconvert kbtshoot kbprb KB840784
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please