Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-461

The AdoNetAppender

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.14
    • Component/s: Appenders
    • Labels:
      None

      Description

      Basically what happens is you guys store the SqlCommand between all requests. The problem is, sometimes this prepared statement gets removed from the cache in SqlServer. When this happens all subsequent requests result in an error "Could not find prepared statement with handle -1"

      You could resolve this by checking for that specific error on submitting and if you get it recreate the command and try again, or just recreate and prepare the statement every time.

      This is a pretty major issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nachbarslumpi Dominik Psenner
                Reporter:
                kellyelton Kelly Elton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: