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

时间:2014-09-23 15:59:58

标签: .net sql-server sitecore sitecore7

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

  

异常:.Net SqlClient数据提供程序

     

在System.Data.SqlClient.SqlInternalConnection.OnError(SqlException   exception,Boolean breakConnection,Action 1 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, TaskCompletionSource 1 retry,DbConnectionOptions   userOptions,DbConnectionInternal&连接)   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(的DbConnection   owningConnection,TaskCompletionSource 1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource 1次重试,DbConnectionOptions userOptions)at at   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1   重试)在System.Data.SqlClient.SqlConnection.Open()处   SitecoreInstallWizardCore.Utils.SQLUtil.TestSqlServerConnection(字符串   connectionString,String userName,Boolean verifyUserSysadmin,Boolean   verifyInstanceLocal)

我试过的事情:

  • sql server / window authentication上的不同登录凭据..
  • 清理temp中的所有缓存
    • 已安装mvc 3和4

仍然是安装程序说错误上面有错误

  

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

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

3 个答案:

答案 0 :(得分: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?

答案 1 :(得分:0)

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

答案 2 :(得分:0)

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