SQL Server Mgt Studio 2008 installation problem - Key not valid for use in specified state

I'm setting up SQL Server Management Studio 2008 on my laptop.  It installed fine, but failed to import a regsrver file exported from another machine. This appears to have been due to the fact that I exported the file with usernames and passwords, although I must admit that's pretty darned inconvenient if it can't be done. 
Nevertheless, I exported the file again without usernames and passwords, but the new install now won't let me even see servers, let alone import any new ones.
When I start Studio, it gives me the "Key not valid for use in specified state" error.  When I 'continue', I'm delivered to a screen with the 'registered servers' pane crippled.  It has no contents at all and no ability to add, select, import, export.  Nothing there.
How do I rectify this?
The installation is on Windows 7 Home Premium.
Thanks for any suggestions.

Hi Don,
Since this issue was still not resolved even after you reinstall SQL Server 2008, I think that this issue is probably related to some corrupted files or registry keys. Please refer to the following steps to see if you can resolve this issue:
1. Close your SSMS;
2. Go to the folder %appdata%\Microsoft\Microsoft SQL Server\100\Tools\ and check if there is a Shell folder, if so, rename it to Shell-Copy;
3. Re-open your SSMS to see if the error persists.
Everytime SQL Server 2008 Management Studio starts, it will read information from this folder to retrieve and recover some data. If the information does not exists, it will recreate new ones. Please check if this helps.
Best regards,
Charles Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help
To add to Don's comment, if you are using a different account (for example, an SA account) to run SQL Server management studio then make sure to change the user profile name when you browse to "%appdata%\Microsoft\Microsoft SQL Server\100\Tools\".
I know many of us developers have multiple accounts and I usually have my SA account have logon privileges on databases not my regular AD Account.
Other than that, the reason why this fails is because MS encrypted the regsrvr file on the source computer using the source computer's ID and is therefore unable to decrypt the file on the destination computer. To me that just doesn't make sense since the
whole idea of Export and import was to move this information across computers! And that's why this works when you import without username and passwords - no more encryption/decryption. Since we use integrated windows logon (trusted_connection=true) it works
great. For the few servers that we had SQL Logons I had to manually type them in and save. But all in all, pretty painless.

Similar Messages

  • Key not valid for use in specified state when running install_reader11_en_mssd_aaa_aih

    After downloading, Version XI (11.0.08)
    at
    http://get.adobe.com/reader/download/?installer=Reader_11.0.08_English_for_Windows&os=Wind ows%207&browser_type=KHTML&browser_dist=Chrome&d=McAfee_Security_Scan_Plus_Chrome_Browser& dualoffer=false
    running, and installing _reader11_en_mssd_aaa_aih
    I get "
    adobe reader installer error
    key not valid for use in specified state
    Using Windows 7, tried google chrome and firefox browsers
    system report created but could not send

    This worked:
    Solution 2: Re-create the Crypto folder.
    Close Acrobat. 
    In Windows Explorer, do one of the following:
    On Windows XP, navigate to C:\Documents and Settings\[your user name]\Application Data\Microsoft.
    On Windows Vista, navigate to C:\Users\[your user name]\AppData\Roaming\Microsoft.
    Note: These paths include hidden folders. To make hidden folders visible, see "Windows Tip - Show hidden files and folders" (TechNote kb402324).
    Rename the Crypto folder as Crypto Old. 
    Open Acrobat. The Crypto folder will be re-created automatically. 
    Error: "Creation of this signature could not be completed. Platform Exception" when you sign a PDF (Acrobat 8, 9 on Wind…
    Then deleted wse_andromenda files in control panel programs, run regedit

  • Problem updating Lightroom "key not valid for use in specified state"

    Hi,
    I am having problems with installing the update 5.6 of Lightroom from 5.2.
    I downloaded and ran the updater. It has uninstalled my previous version of Lightroom but now each time I try to run the installer it fails, with the message "key not valid for use in specified state".
    I have tried restarting to no avail.
    Any ideas?

    Searching Google for the error and Lightroom, the two forum threads that come up are:
    1)      Installing Muse the user wasn’t logged in as an administrator level user and after they logged in as an administrator user and did the install, again, it worked.
    2)      A recent Windows Update seemed to interfere with something and the user did a system restore back to a few weeks, ago, reinstalled their previous version of LR, and then installed LR 5.6 and then did the Windows Updates again and everything was ok.

  • Key not valid for use in specified state - installation error

    I am trying to install Adobe Reader XI on a Windows 7 computer at work and I get this error message:  "key not valid for use in specified state."  What is going on and how do I fix the problem so that i can install Adobe Reader?

    This worked:
    Solution 2: Re-create the Crypto folder.
    Close Acrobat. 
    In Windows Explorer, do one of the following:
    On Windows XP, navigate to C:\Documents and Settings\[your user name]\Application Data\Microsoft.
    On Windows Vista, navigate to C:\Users\[your user name]\AppData\Roaming\Microsoft.
    Note: These paths include hidden folders. To make hidden folders visible, see "Windows Tip - Show hidden files and folders" (TechNote kb402324). 
    Rename the Crypto folder as Crypto Old. 
    Open Acrobat. The Crypto folder will be re-created automatically. 
    Error: "Creation of this signature could not be completed. Platform Exception" when you sign a PDF (Acrobat 8, 9 on Wind…
    Then deleted wse_andromenda files in control panel programs, run regedit

  • Reporting Service Integration mode and Key not valid for use in specified state

    I had to uninstall SharePoint Foundation 2013 and reinstall it.
    What I have done:
    I uninstalled SharePoint and after that I removed all databases.
    I reinstalled SharePoint Foundation 2013 and it completed without errors.
    Everything else is working, except SSRS in Sharepoint Integrated Mode.
    If I check Central Administration - Manage services on server, I can found out that SQL Server Reporting Service Service is
    "Started". But if I try to create new service application (SQL Server Reporting Services Service Application), it gives me an error message:
    "Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)"
    I uninstalled SSRS in Sharepoint Integrated Mode and I reinstalled it but problems exists.
    It seems that "Encryption Keys" cause this problem.
    https://support.microsoft.com/kb/955757
    https://msdn.microsoft.com/en-us/library/ms156010%28v=sql.110%29.aspx
    I tried to Re-create Encryption Keys and Delete keys, but its not working either. It gives me only error message that:
    "Unable to locate the Reporting Server Windows service for instance MSSQLSERVER."
    I don't have any reporting server databases, because I removed all
    databases when I uninstalled SharePoint. Also I don't have Encryption
    Keys backups.
    I have found several similar question but no answer, example here:
    https://social.technet.microsoft.com/Forums/ie/en-US/df02dc05-5ce8-499d-9ba3-ab392a5fc3af/sharepoint-2013-ssrs-application-error-key-not-valid-for-use-in-specified-state-exception?forum=sharepointdevelopment
    Any ideas how I can fix this problem?

    Hi,
    From the Reporting Server Configuration Manager you have to restore the encryption key.
    Please try to delete databases(reportserver & reportservertempdb) and delete the reportserver and reports site on IIS. Then you have to start over the configuration again.
    If the issue still exists, Please check ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log locates in
    "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS"
    More information about SQL Reporting services Installation with SharePoint 2013 for your reference:
    http://expertsharepoint.blogspot.de/2014/03/sql-reporting-services-installation.html
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state

    we have developed packages to do the followings
    Extract data from DB2 Source and put it in MS Sql Server 2008 database (Lets Say DatabaseA).From MS Sql Server 2008 (DatabaseA)
    we will process the data and place it in another database MS Sql Server 2008 (DatabaseB)
    We have created packages in BIDS..We created datasource connection in Datasource folder in BIDS..Which has DB2 Connection and both Ms Sql Server connection (Windows authentication-Let
    say its pointing to the server -ServerA which has DatabaseA and DatabaseB).The datasource connections will be used in packages during development.
    For deployment we have created Package Configuration which will have both DB2 Connection and MS SqlServer connection in the config
    We deployed the packages in different MS SqlServer by changing the connectionstring in the config for DB2 and MS SqlServer...
    While runing the package we are getting the following error message
    Code: 0xC0016016     Source:       Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for
    use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.
    ilikemicrosoft

    Hi Surendiran,
    This is because the package has been created by somebody else and the package is being deployed under sombody else's account. e.g. If you are the creator then the package is encryption set according to your account and the package setup in SQL server is
    under a different user account.
    This happens because the package protection level is set to EncryptSensitiveWithUserKey which encrypts
    sensitive information using creator's account name.
    As a solution:
    Either you have to set up the package in SQL server under your account (which some infrastructures do not allow).
    OR
    Set the package property Protection Level to "DontSaveSensitive" and add a configuration file
    to the package and set the initial values for all the variables and all the connection manager in that configuration file (which might be tedious of-course).
    OR
    The third options (which I like do) is to open the package file and delete the password encryption entries from the package. Do note that this is not supported by designer and every time you make changes to the connection managers these encryption entries come
    back.
    Hope this helps. 
    Please mark the post as answered if it answers your question

  • ERROR: "key not valid for use in specified state" when updating to Lightroom 5.6 in Win8.1

    While doing a routine update from Lightroom 5.5 to v5.6 in Win 8.1, the installation halted at the start of the installation with the vague error message, "key not valid for use in specified state".  Although v5.5 was working just fine, the install routine deleted the v5.5 application files.  I rolled back to the previous system restore point (set just prior to the install) and recovered the executable files.  However, now the 5.5 files won't open the default catalog, none of the backups, or even create a new catalog.
    As v5.x was purchased as an update to v4.x, I've tried to reinstall the original Lightroom v4.x app from the factory disk.  I get the same error.
    Suggestions?
    Thanks. Dan

    I have a similar problem to Dan. while doing a routine upgrade from Lightroom 5.5 to 5.6 I got the
    : "key not valid for use in specified state"
    error and now Lightroom has completely disappeared. I've tried to uninstall, but there is nothing to uninstall. Going back to try to install the original 5.4 just results in the same error.
    A problem may have been that I closed Lightroom when the upgrade started to download. It then re-opened again when the install was halfway through., I assumed that was an error and closed it. just after that the error first appeared in the installer.
    I still had an older version of lightroom 4 installed. I've uninstalled it, and that didn't make any difference.
    I've also tried removing anything in the registry left over from the old installs and that didn't help either.
    Any suggestions?
    CHeers, Angus

  • Key not valid for use in specified state.

    Hi. Muse update to 2014.1 will not install, so I uninstalled Muse 2014 and tried again and again, no luck. However, I just updated InDesign and Premiere Pro successfully.
    Thank you for any tips.
    Error log is as follows:
    "Payload: Muse CC (2014.1) 2014.1.0.375 Muse_2014_1_CC_LS24.msi_2014.1.0.375 -----------
    ERROR: Key not valid for use in specified state.
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Key not valid for use in specified state.
    ERROR: Third party payload installer Muse_2014_1_CC_LS24.msi failed with exit code: 1603

    I solved the problem by restarting the computer and logging in to an administrator account. Then I was able to install Muse 2014.1
    Perhaps, if this makes any sense technically, one part of the install process touched a nerve with a component in the process that required admin privileges that my day-to-day account was denying?
    I hope it helps others - and I see there are a few having this problem.
    Again, many thanks for your support, kglad.

  • Cannot export private key: "key not valid for use in specified state"

    Hi,
    This is a bit of a long story but I hope someone can give us some guidance.
    We use authentication certificates issued from our own Enterprise CA to control user and machine authentication via RADIUS/NPS for our wireless network.  Certificates are deployed via group policy/autoenrollment. In general this works well but
    we have an intermittent problem where user authentication stops working for a user who was fine before. The user certificate looks OK via Certmgr (shows as valid, shows that there is a private key associated with the certificate).  The NPS server
    logs show that the machine has been authenticated and granted access, but the user in this situation doesn't show up in the server logs at all. 
    The only solution in this case is to connect to the wired network and request a new certificate for the user (either via certmgr or just by deleting the duff cert and logging off/on again to get the cert via autoenrollment).
    The interesting thing is that while a "working" certificate can be exported with no problem, a duff certificate cannot be exported with its private key, giving the error "key not valid for use in specified state". (Obviously the certificates
    come from the same template, and the key is not marked unexportable).  The key files are present in %userprofile%\Appdata\Roaming\Microsoft\Crypto\RSA and the user permissions on these files look correct.
    After much searching of the forums I tried running certutil-repairstore on the duff certificate and that also returned the same error.  I also tried an undocumented switch Certutil -user -key -v and again, got a very similar error "Loadkeys returned
    key not valid for use in specified state. 0x8009000b (-2146893813)".
    I'm assuming that the fact that the key is unexportable/corrupt is also the reason why the certificate can no longer be used for authentication.
    Does anyone have any clues as to what might be causing this, and/or if a certificate with a key in this state can be repaired?
    Thanks!

    I can just share an experience I once had that was somewhat similar:
    In this case certificates could sometimes not be enrolled and the CSP came up with a related error message.
    The root was the software / driver (?) for a hardware dongle required to run some software. This "driver" added a registry key to the list of CSPs (under these HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider - but I have seen this with
    XP, so the exact location might be different now).
    This fake CSP entry that had quite a weird name effectively broke other CSPs. After removing the access to / generation of keys worked fine.
    So it would be interesting to know if you run some software that is "close to CSPs or cryptography".
    Elke

  • DontSaveSensitive; Key not valid for use in specified state error

    I initially had my packages set to 'EncryptSensitivewithPassword' and usedthe config files.  My job executes fine.  But I noticed I was getting THE error "......Key not valid for use in specified state.....".  So, I change the protection level
    to 'DontSaveSensitive' , saved packaged ,build and re-imported it.  And I still get the same result.
    What am I doing wrong??   Package is on the same server where it was built.
    I have a package in production that executes without the error.  I made a change to the package (logging) in test and now it also encounters same error as the package referenced above.

    created ssis package logged in as testsrvr\admin;  tests fine.
          protection level - don't save sensitive
          use xml config files
    move to production server logged in as prodsrvr\admin; tests fine in bids.
    exec package via sql agent (runs under domain\prodsrvr account ). Both attempt same package
    job attempt #1
    type  - cmdexec
    run as - SQL Agent Service account
    command - exec using  dtexec.exe /SQL "\DS\DSU002A 586SSN_TO_SQL" /SERVER SQLDRK51 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EW
     receive error
    Executed as user: ILSOS\sqldrk51. ... 9.00.4035.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  7:00:00 PM  Error: 2010-08-30 19:00:00.33     Code: 0xC0016016    
    Source:       Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there
    is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2010-08-30 19:00:00.35     Code: 0xC0016016     Source:       Description: Failed to decrypt
    protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. 
    End Error  Error: 2010-08-30 19:00:00.35     Code: 0xC0016016     Source:       Description: Failed to decrypt...  Process Exit Code 0.  The step succeeded.
    Job Attempt #2
    type SSIS
    run as SQL Agent Service account
    package source file system
    package - I:\SSISProjects\DSU002 Viisage Data Transfers\Viisage Data Transfers\DSU002A 586SSN_TO_SQL.dtsx
    no error
    Executed as user: ILSOS\sqldrk51. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.4035.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  12:54:03 PM  DTExec: The package
    execution returned DTSER_SUCCESS (0).  Started:  12:54:03 PM  Finished: 12:54:08 PM  Elapsed:  4.953 seconds.  The package executed successfully.  The step succeeded.

  • Key not valid for use in specified state error message

    I did the update for my iPhone and also tried to update iTunes. I kept getting an error message of "key not valid for use in specified state" error message. I thought that if I uninstalled iTunes and re-installed it, that it would be fine. I'm still getting the message and now I don't have iTunes. When my phone updated, I couldn't download anything/backup my phone to iTunes. Please help. Thank you in advance.

    For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
    For further problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • "Key not valid for use in specified state" after IIS Reset?

    I have had a ton of issues with the System.Security.Cryptography.CryptographicException: Key not valid for use in
    specified state. error. This seems to only occur now when IIS is reset and I try to resume my browsing session. So I am logged into the application, I reset IIS on the server, refresh the page and see the error.
    I am building an application in .NET 4.0 MVC with a Secure Token Service that is using WIF 4.0. Everything works as expected, except this case. I even tried to use a custom error page, but the error is happening there as well. Because of that, I can't get the
    custom page to show either. One thing I noticed is that if I switch my IIS APP Pool user back to Network Service account it doesn't throw the error any more. We have some restrictions (mostly network related) in the application that we need to use an account
    in our AD for the app pool sections
    Anybody have any experience with this issue?

    Hi Shennessy,
    In my opinion, this thread is related to ASP.NET forum. So please post thread on that forum for more effective response. Thank you for understanding. Please refer to the following link.
    http://forums.asp.net/.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why do I keep getting the message "key not valid for use in specified state"?

    why do I keep getting the message "key not valid for use in specified state"?

    You need to deal with Adobe Customer support.  This is a  Photoshop User forum the is also one for LR may be some on over there has encountered you problem Photoshop Lightroom

  • I am getting an error message "key not valid for use in specified state"

    I am trying to install adobe photoshop elements 12  I just bought and when it says install I click the button and up pops " key not valid for use in specified state" any body know what to do.

    Hi,
    You can try to mov the contents of "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Crypto\RSA" to another location.
    Try to run the installation again and check if it works.
    Additional information:
    ERROR: "key not valid for use in specified state" when updating to Lightroom 5.6 in Win8.1
    key not valid for use in specified state | Apple Support Communities

  • Site behind load balancer - Key not valid for use in specified state

    Hi,
    I have created a sharepoint application page to access an active end point on ADFS and establish a fedauth session. All works well in single server. But when the page runs behind load balancer with 2 servers, it fails with key not valid for use in specified
    state exception. Stickiness is enabled on load balancer. verified that.
    I had made few changes to config file in microsoft.identitymodel section to accomodate adfs custom login. This included removing securitytokenhandlers and issuertokenresolvers as well. Is this impacting the encryption/decryption in anyway?
    Any pointers would help.
    Reference point for my application page : http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=76

    Hi,
    As I understand, you encountered the error “Key not valid for use in specified state” when ADFS custom login.
    In order to run in Windows Azure Web Sites a Web application which uses WIF for handling authentication, you must change the default cookie protection method (DPAPI, not available on Windows Azure Web Sites) to something that will work in a farmed environment
    and with the IIS’ user profile load turned off.
    1. If you are using the Identity and Access Tools for VS2012, just go to the Configuration tab and check the box “Enable Web farm ready cookies”.
    2. If you want to do things by hand, add the following code snippet in your system.identitymodel/identityConfiguration element:
       <securityTokenHandlers>
         <add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, 
                 System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          <remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler,
                System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        </securityTokenHandlers>
    There is a similar case:
    http://stackoverflow.com/questions/19323287/key-not-valid-for-use-in-specified-state-error-for-net-4-5-mvc-4-application
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Date format in Forms_DDL

    DECLARE FROM_DT DATE := :CONTROL.FDT; TO_DT DATE := :CONTROL.TDT ; BEGIN FORMS_DDL(' CREATE OR REPLACE VIEW abc_COST AS (SELECT OC.PJECT, OC.acode F_NO , DECODE(OC.RECPT_DATE,NULL,OC.LOG_DATE,OC.RECPT_DATE) dt, DECODE(CCM.C_CODE,32,(NVL(OC.AMOUNT,0))

  • Checking primary key or unique in while entry

    Hi, I want to check primary key or unique key while entry the record, without any loop. Suppose like these ac_code ac_desc A1 ASSET A2 LIABLITY A3 EXPENESS If I enter in A2 It will give error already exists( Don't want any when validate record ) Pls

  • I have an IMac intel  OS x 10.8.2, I would like to know what is the best program to use to make movies and burn them to a DVD???

    What is the best program to use that will be compatable with a IMac intel OS x 10.8.2, that will allow me to make movies, add music then burn it to a DVD.  The program I have now, will make the movie but will not burn it???

  • Firefox does not load last saved urls

    Dear support team, I have to open 5 fix urls daily for 12 hours. The new fixfox does not load last opened urls when i came at work next day while previous version was doing same thing for me since months. Please advise. Kind regards Aziz A. Khan

  • Source timecode

    I am having a problem making the source timecode show up in Premiere Pro CC 2014? Not sure what I need to do?