IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP.NET Discussion :

Erreur sur mon site


Sujet :

ASP.NET

  1. #1
    Membre régulier
    Inscrit en
    Mai 2004
    Messages
    378
    Détails du profil
    Informations forums :
    Inscription : Mai 2004
    Messages : 378
    Points : 120
    Points
    120
    Par défaut Erreur sur mon site
    Bonjour,
    Parfois qu'on je veux acceder à mon site il m'envoi cet erreur :
    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.]
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4863722
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
    System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
    System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
    System.Web.UI.WebControls.ListControl.PerformSelect() +34
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
    System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
    Je veux savoir d'ou il vient cet erreur?
    Merci infiniment
    bonjour Developpez est le meilleur forum.

  2. #2
    Membre actif
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    298
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 298
    Points : 295
    Points
    295
    Par défaut
    T'as explosé le nombre de pool autorisé dans sqlserver...


    En général ca veut dire que tu dans ton code tu fais de Connection.open()
    sans faire les Connection.close() qui vont bien.

    Du coup tu laisse trop de connection ouverte et Sql server crash...

  3. #3
    Membre régulier
    Inscrit en
    Mai 2004
    Messages
    378
    Détails du profil
    Informations forums :
    Inscription : Mai 2004
    Messages : 378
    Points : 120
    Points
    120
    Par défaut
    En fait je n'utilise pas cn.open, toujours j'utilise un dataset et comme vous le savait fill ouvre et ferme la connexion automatiquement, n'est ce pas?
    bonjour Developpez est le meilleur forum.

  4. #4
    Membre actif
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    298
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 298
    Points : 295
    Points
    295
    Par défaut
    Et ton dataset tu le remplis comment ?

    Sans faire de conn.open()... j'ai jamais vu ca tu peux me monter un de tes appels ?

  5. #5
    Membre régulier
    Inscrit en
    Mai 2004
    Messages
    378
    Détails du profil
    Informations forums :
    Inscription : Mai 2004
    Messages : 378
    Points : 120
    Points
    120
    Par défaut
    Voila
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
            Dim connectionString As String
            connectionString = _
                ConfigurationManager.ConnectionStrings _
                ("Cn").ConnectionString
            Dim dbConnection As New SqlConnection
            dbConnection.ConnectionString = connectionString
            Dim dbAdapter As New SqlDataAdapter
            dbAdapter.SelectCommand = sqlQuery
            sqlQuery.Connection = dbConnection
            Dim resultsDataSet As DataSet = New DataSet
            Try
                dbAdapter.Fill(resultsDataSet)
            Catch ex As Exception
                'MsgBox(ex.Message, MsgBoxStyle.Critical, "Erreur")
            End Try
            Return resultsDataSet
    bonjour Developpez est le meilleur forum.

  6. #6
    Membre actif
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    298
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 298
    Points : 295
    Points
    295
    Par défaut
    Moi je trouve que c'est un peu tordu comme code tu as la main sur rien....

    Va voir dans sqlserver quelles sont les connections qui sont ouvertes.... Comme ca tu sauras laquelle pose problème

Discussions similaires

  1. Réponses: 10
    Dernier message: 07/02/2014, 22h23
  2. Erreur 500.19 sur mon site web
    Par MattJack dans le forum ASP.NET
    Réponses: 1
    Dernier message: 14/10/2012, 21h43
  3. [MySQL] Erreur mysql sur mon site NK
    Par moulinex71 dans le forum PHP & Base de données
    Réponses: 10
    Dernier message: 23/03/2009, 22h28
  4. BD Access + photo erreur d'affichage sur mon site
    Par cedric/copy dans le forum ASP
    Réponses: 11
    Dernier message: 20/03/2009, 14h52
  5. [MySQL] Erreur sur la requête sur mon site
    Par Gruzzyh2 dans le forum PHP & Base de données
    Réponses: 7
    Dernier message: 17/06/2008, 15h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo