例外:System.Data.SqlClient.SqlInternalConnection.OnError中的.Net SqlClient数据提供程序(SqlException异常,

问题描述 投票:0回答:3

我正在使用安装程序进行sitecore 7.0安装...但每次在数据库设置时它都会抛出相同的错误:

例外:.Net SqlClient数据提供程序

System.Data.SqlClient.SqlInternalConnection.OnError(SqlException异常,Boolean breakConnection,Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1重试,DbConnectionOptions userOptions,DbConnectionInternal和连接)在System.Data的System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection,TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry,DbConnectionOptions userOptions)处于System.Data位于SitecoreInstallWizardCore.Utils.SQLUtil.TestSqlServerConnection(String connectionString,String userName,Boolean verifyUserSysadmin,Boolean verifyInstanceLocal)的System.Data.SqlClient.SqlConnection.Open()的.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)

我试过的事情:

  • sql server / window身份验证的不同登录凭据..
  • 清理temp中的所有缓存 安装了mvc 3和4

仍然安装程序说上面的错误给出错误

尝试连接到SQL Server时出错:用户''登录失败。有关详细信息,请参阅日志文件

我用谷歌搜索,但无法找到关于sitecore的相关信息......请建议

.net sql-server sitecore sitecore7
3个回答
0
投票

您需要禁用SQL Server命名管道并通过协议,只需启用TCP / IP。

从这个链接 - http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%205,-d-,3/Installation/Troubleshooting.aspx得到了这个

思考 - 可能是第一次使用命名管道尝试并失败,但如果它被禁用,它肯定会使用TCP连接,这应该可以解决问题。

或更多链接 - How to solve a login/database missing error regarding Sitecore Training Website?


0
投票

你能检查一下sql server是否设置为“windows authentification only”模式,这可能是造成这个问题的原因。如果是这样,您需要将其更改为“SQL Server和Windows身份验证模式”,请参阅此link以获取帮助


0
投票

这似乎是一个SQL连接字符串问题,与sitecore无关。检查您的connectionstrings.config以查看您是使用集成安全性(Windows)还是在连接字符串中传递用户凭据。

© www.soinside.com 2019 - 2024. All rights reserved.