2017-03-08 95 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管理工作室连接服务器,或使用相同凭证进行连接。凭据无效。