SQL SERVER Install error message: Key not valid for use in specified state

Posted on 2006-04-22
Last Modified: 2012-06-27

Hello All,

I am trying to install Microsoft SQL Server 2005 Express and keep getting this error message.

All help would be sincedrely appreciated: (here's the message)

Windows Error Text: Key not valid for use in specified state.

Source File Name: cryptohelper\cryptsameusersamemachine.cpp
Compiler Timestamp: Mon Jun 13 14:30:00 2005
Function Name: sqls::CryptSameUserSameMachine::ProtectData
Source Line Number: 50

Could not skip Component update due to datastore exception.
Source File Name: datastore\cachedpropertycollection.cpp
Compiler Timestamp: Fri Jul 29 01:13:49 2005
Function Name: CachedPropertyCollection::findProperty
Source Line Number: 130
Could not parse command line due to datastore exception.
Question by:paygo
    LVL 4

    Accepted Solution

    It appears as though an API in the CryptAPI subsystem is failing.  This can be caused by either a problem with the cryptographic services, or with ACL permissions on a directory.  Please try each of the following, attempting setup between each:

    1/ Make sure that the Folder from where SQL Setup is being run is Shared with Full
    permissions to everyone

    2/  Setup MSDTC as a clustered resource if you are installing onto a cluster.

    3/ If the above does not work then this could be a problem with cryptographic
    services and for that we can use the following KB::;en-us;246183

    4/ Repair CryptAPI
    regsvr32 /s softpub.dll
    regsvr32 /s wintrust.dll
    regsvr32 /s initpki.dll
    regsvr32 /s dssenh.dll
    regsvr32 /s rsaenh.dll
    regsvr32 /s cryptdlg.dll
    regsvr32 /s gpkcsp.dll
    regsvr32 /s sccbase.dll
    regsvr32 /s slbcsp.dll
    regsvr32 /s urlmon.dll
    regsvr32 /s shdocvw.dll
    regsvr32 /s msjava.dll
    regsvr32 /s browseui.dll
    regsvr32 /s mshtml.dll
    regsvr32 /s jscript.dll
    regsvr32 /s vbscript.dll
    net stop cryptsvc
    ren %systemroot%\system32\catroot catold ren %systemroot%\system32\catroot2 cat2old
    net start cryptsvc

    Hope this will solve your problem.

    Chetan Sachdeva

    Author Comment

    Thanks for the Help. I needed to Log In as Administrator.

    Then I deleted the CRPT files in DocumentsandSettings/AllUsers................ as the artice describes.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction After workin in a plethora of programming languages like C, Pro*C, ESQL/C, C++, VC++, VB, Java, HTML,JavaScipt etc, technologies and frameworks like JSP, Servlets, Struts, Spring, IBatis etc and databases like MS Access, SQLServer, Inf…
    In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now