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
SYMPTOMSIf 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 CAUSEThis 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. RESOLUTIONMake sure that the name of the CSP contains only ASCII
characters. STATUS This
behavior is by design. MORE INFORMATIONGenerally, 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. REFERENCESFor 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)
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
