2017-03-08 186 views
-1

我有一個應用程序和WCF服務這是application.What的一部分正在發生的事情,如果我撥打服務直接就導致了以下異常:SQL異常用戶登錄失敗

「System.Web.Services。 Protocols.SoapException:服務器無法處理請求---> System.Data.SqlClient.SqlException:用戶'Kanix'登錄失敗。\ u000a在System.Data.SqlClient.SqlInternalConnection.OnError(SqlException異常,Boolean breakConnection, Action 1 wrapCloseInAction)\u000a at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\u000a at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\u000a at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)\u000a at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)\u000a at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)\u000a at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)\u000a at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)\u000a at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)\u000a at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)\u000a at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)\u000a at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\u000a at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)\u000a at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)\u000a at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource 1 retry,DbConnectionOptions userOptions,DbConnectionInternal & connection)\ u000a at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection,TaskCompletionSource 1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)\u000a at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource 1 retry,DbConnectionOptions userOptions)在System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource 1 retry)\u000a at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource 1重試)\ u000a \ u000a在System.Data.SqlClient.SqlConnection.Open()\ u000a at DataAccessLayer.SQLHelper.GetMultipleResultSets(String strSQlSPName,Dictionary 2& params, List 1 outParams)in D:\ TFS SAAS \ HighriseLicensing- \ DataAccessLayer \ SqlHelper.vb:D:\ TFS中的DataAccessLayer.LoginDL.AuthenticateKey(字符串鍵,Int32 guid,字符串用戶ID,Int32模式)的第162行\ SAAS \ HighriseLicensing- \ DataAccessLayer \登錄D:\ TFS SAAS \ HighriseLicensing- \ BusinessLogicLayer \ LoginBL.vb中的BusinessLogicLayer.LoginBL.AuthenticateKey(字符串鍵,Int32 guid,字符串用戶ID,Int32模式)中的LoginDL.vb:第20行\ u000a:Lincensing處的第18行。 GetFaith.CheckKeyvalidity(String key,Int32 guid,String InstallationId,Int32 Mode)in D:\ TFS SAAS \ HighriseLicensing- \ Lincensing \ GetFaith.asmx.vb:line 53 \ u000a at Lincensing.GetFaith.CheckKey(String key,Int32 guid ,String InstallationId,Int32模式)在D:\ TFS SAAS中\ HighriseLicensing- \ Lincensing \ GetFaith.asmx.vb:第23行\ u000a ---內部異常堆棧跟蹤結束---「

一個重要的事情是,當我從應用程序登錄時,我從應用程序註銷它給這個錯誤。

回答

0

看起來像你有關於登錄的問題。請直接從SQL Server管理工作室連接服務器,或使用相同憑證進行連接。憑據無效。