2014-09-23 30 views
0

我在做Sitecore的7.0安裝與安裝...但在數據庫設置每次它拋出同樣的錯誤:例外:在System.Data.SqlClient.SqlInternalConnection.OnError .net SqlClient數據提供(SqlException異常,

例外:.net SqlClient數據提供

在System.Data.SqlClient.SqlInternalConnection.OnError(SQLEXCEPTION 例外,布爾breakConnection,動作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重試,DbConnectionOptions USEROPTIONS,DbConnectionInternal &連接)在 小號ystem.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)在 System.Data.SqlClient.SqlConnection.TryOpen在System.Data.SqlClient.SqlConnection.Open(TaskCompletionSource`1 重試) ()在 SitecoreInstallWizardCore.Utils.SQLUtil.TestSqlServerConnection(字符串 的connectionString,用戶名字符串,布爾verifyUserSysadmin,布爾 verifyInstanceLocal)

件事我想:

    上的SQL Server /窗口認證
  • 指出錯誤的登錄憑據..
  • 清理臨時的所有緩存
    • 安裝MVC 3和4

仍然安裝程序提示給定的錯誤與上述錯誤

嘗試連接到SQL Server時發生錯誤:登錄 用戶''失敗。詳細信息請參閱日誌文件。

我用Google搜索,但無法找到相關的很多關於Sitecore的...... 請建議

+0

是那個日誌文件?你傳遞了什麼connectionString,用戶名...?如果你正在傳遞一個用戶,那真的很奇怪,它會給用戶提供錯誤登錄失敗。既然你沒有密碼,我會猜測Windows身份驗證。該服務器是域成員嗎? – Paparazzi 2014-09-23 19:48:17

+0

有類似的錯誤,並證明我在連接字符串連接的用戶/密碼是錯誤的,它在SQL Server中是什麼 – Darren 2015-04-02 14:39:17

回答

0

你需要禁用命名管道SQL服務器,並通過協議,只啓用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

是的..這是我猜的相關問題。我在配置管理器中... pipieline被破壞..安裝sp2,m正在工作,將更新帖子 – user3767164 2014-09-25 04:23:52

0

你能檢查是否設置爲「僅適用於Windows認證」模式,SQL服務器,這可能是什麼造成這個問題。 如果是這樣,您需要將其更改爲「SQL Server和Windows身份驗證模式」,請參閱此link以獲得幫助

0

這似乎是SQL連接字符串問題,並且與sitecore無關。檢查您的connectionstrings.config以查看您是使用集成安全性(Windows)還是在連接字符串中傳遞用戶憑據。