询问者
System.Security.Cryptography.CryptographicException when creating sp2010 farm on win7 for development enviroment

问题
-
i installed a sp2010 foundation server on win7 for DEV. but i failed to create farm with production configuration wizard what follows is the error
11/09/2019 18:13:08 9 ERR Task configdb has failed with an unknown exception
11/09/2019 18:13:09 9 ERR Exception: System.Security.Cryptography.CryptographicException: 指定了无效的提供程序类型。
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
at Microsoft.SharePoint.Utilities.CertificateManager.ReleaseCertificate(X509Certificate2 certificate)
at Microsoft.SharePoint.Administration.SPCertificateAuthority.GetRootCertificate(Boolean includePrivateKey)
at Microsoft.SharePoint.Administration.SPTrustedRootAuthorityManager.Provision()
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()And i can see audit failure on windows event log:
日志名称: Security
来源: Microsoft-Windows-Security-Auditing
日期: 2019/11/9 18:13:08
事件 ID: 5061
任务类别: 系统完整性
级别: 信息
关键字: 审核失败
用户: 暂缺
计算机: asus7.spdev.net
描述:
加密操作。
主题:
安全 ID: SPDEV\administrator
帐户名称: Administrator
帐户域: SPDEV
登录 ID: 0x2c8a8
加密参数:
提供程序名称: Microsoft Software Key Storage Provider
算法名称: 不可用。
密钥名称: CLR{BE6F19A5-28F0-409B-83EB-77A42A5587B9}
密钥类型: 计算机密钥。
加密操作:
操作: 打开密钥。
返回代码: 0x80090011
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
<EventID>5061</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>12290</Task>
<Opcode>0</Opcode>
<Keywords>0x8010000000000000</Keywords>
<TimeCreated SystemTime="2019-11-09T10:13:08.952971900Z" />
<EventRecordID>25284</EventRecordID>
<Correlation />
<Execution ProcessID="564" ThreadID="680" />
<Channel>Security</Channel>
<Computer>asus7.spdev.net</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-596525932-3857338158-1200943804-500</Data>
<Data Name="SubjectUserName">Administrator</Data>
<Data Name="SubjectDomainName">SPDEV</Data>
<Data Name="SubjectLogonId">0x2c8a8</Data>
<Data Name="ProviderName">Microsoft Software Key Storage Provider</Data>
<Data Name="AlgorithmName">%%2432</Data>
<Data Name="KeyName">CLR{BE6F19A5-28F0-409B-83EB-77A42A5587B9}</Data>
<Data Name="KeyType">%%2499</Data>
<Data Name="Operation">%%2480</Data>
<Data Name="ReturnCode">0x80090011</Data>
</EventData>
</Event>If i change server role from APPLICATION to SINGLESERVER in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\ServerRole and run production configuration wizard, the error will be:
11/09/2019 18:36:33 11 ERR Task configdb has failed with an unknown exception
11/09/2019 18:36:33 11 ERR Exception: System.Security.Cryptography.CryptographicException: 数据无效。
at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
at Microsoft.SharePoint.Administration.SPCredentialManager.GetMasterKey(SPFarm farm)
at Microsoft.SharePoint.Administration.SPCredentialManager.set_MasterKey(Byte[] value)
at Microsoft.SharePoint.Administration.SPCredentialManager.CreateMasterKey(Boolean generateKeyIfNeeded, SecureString sstrPassphrase, Boolean localOnly)
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()The windows account is in domain admin as well as the Administrator group for Win7
- 已编辑 GuYuming 2019年11月9日 11:55
2019年11月9日 11:48
全部回复
-
i installed CAPIMON. setup and start it and run product configuration wizard to get the exception again. but nothing is in the CAPIMON logs folder
capimon -setup -appname:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\psconfigui.exe"
reboot computer
capimon -start
2019年11月10日 3:32 -
Hi, GuYuming,
We are now researching this issue. Update will be posted here ASAP to keep you informed. Thanks for your understanding.
Best Regards
Jerry
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
SharePoint Server 2019 has been released, you can click here to download it.
Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.2019年11月11日 9:36 -
hello, since you install SP2010 on Win7 env some prerequisite steps should be done before Sharepoint can be installed there. Did you perform all steps listed in this article on?
Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - https://github.com/sadomovalex/camlex- 已建议为答案 Grace WRMicrosoft contingent staff 2019年11月18日 8:24
2019年11月11日 15:06 -
Hi GuYuming,
I agreed with sadomovalex. Please check the official article about Setting up development environment for SharePoint 2010 Foundation on Win7, you need to make sure all prerequisites are installed.
In addition, if you are using a local instance of Microsoft SQL Server 2008, please make sure you install the Microsoft SQL Server 2008 KB 970315 x64 before starting the wizard.
Thanks,
Wendy
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
SharePoint Server 2019 has been released, you can click here to download it.
Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.- 已建议为答案 Grace WRMicrosoft contingent staff 2019年11月18日 8:24
2019年11月12日 3:23 -
i cannot download some pre-requisite: https://social.technet.microsoft.com/Forums/en-US/c5948a5e-ca89-4fee-ad4b-602c728770bf/cannot-download-prerequisite-hotfix?prof=required
if i download from thehotfixshare.net as suggested in the link above, i found that there is not digital signature for the downloaded file, while other patchs downloaded from official site have digital signature. Is this normal?
- 已编辑 GuYuming 2020年2月20日 3:08
2020年2月20日 3:07