Unable to login users

  • It is an 8 years project.I am working on this project since 1 year.ther is a stored procedure to verifiy user login credentials.If every thing is correct then user is logined to that website.

    I didn't get any problem till now, from last 2 days i am getting some problems. Users are unable to login into my website.They are entering user name and password and clicking login button, after clicking the login button it saying user and password is incorrect.

    But every users is getting same problem.

    When i open the log file , in the log file there is exception i.e get_login_user is an stored procedure (skg is username and password is skg@123)

    [09-19-2012 07:51:31:786]Inside Exceptionexec get_login_user 'skg', 'skg@123'

    [09-19-2012 07:51:31:817]ExceptionSystem.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()

    at System.Data.SqlClient.SqlDataReader.get_MetaData()

    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

    at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)

    at DbUtil.ExecuteQuery(String sqlStr, String dtblName) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\DbUtil.cs:line 27

    public static DataTable ExecuteQuery(string sqlStr, string dtblName)

    {

    SqlConnection Conn = DbUtil.GetDbConn();

    SqlCommand sqlCommand = new SqlCommand(sqlStr, Conn);

    sqlCommand.CommandTimeout = 120;

    DataTable result;

    try

    {

    SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);

    DataSet dataSet = new DataSet();

    sqlDataAdapter.Fill(dataSet, dtblName);

    DataTable dataTable = dataSet.Tables[dtblName];

    DbConn.Close();

    DbConn.Dispose();

    if (dataTable.Rows.Count != 0)

    {

    result = dataTable;

    }

    else

    {

    result = null;

    }

    }

    catch (Exception ex)

    {

    SnAppLogger.Write("Inside Exception" + sqlStr.ToString());

    SnAppLogger.Write("Exception" + ex.ToString());

    DbConn.Close();

    DbConn.Dispose();

    result = null;

    }

    return result;

    }

    The Line 27 is sqlDataAdapter.Fill(dataSet, dtblName);

    This Problem getting Daily Morning at 7:30 AM, no body is logined to that website.

    If i restart the Database Server, then they are able login into website.

    I am unable to find the problem.

    Please help me........

    Thanks,

    Suresh

  • Unfortunately my crystal ball is still broken, and since we can't see what you see there really isn't much we can do based on what you have posted.

    What types of errors are users getting when they attempt to login? Does your login process log errors for easier debugging of login issues, and if so what errors are being reported there?

  • If I were just to take wild guess, I'd say that this could be a license/connection limit problem.

    However, like Lynn, my ESP's on the wane, so that really is just a WAG.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • I didn't understand what license and connection limit problem. Can you explain in detail.

  • suresh0534 (9/7/2012)


    I didn't understand what license and connection limit problem. Can you explain in detail.

    How about you start answering my questions first? A little rude to be asking more questions when you haven't answered any yet.

  • suresh0534 (9/7/2012)


    I didn't understand what license and connection limit problem. Can you explain in detail.

    No I could not, because you haven't given any of the details that we would need to do this. Besides, I said it was a guess. So please see Lynn's original reply, and provide the information that he requested.

    Thanks,

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • send me ur stored procedure..then only i can vieww ur problems

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply