occasional SqlException 'a severe error occured...'

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default occasional SqlException 'a severe error occured...'

    Hello all,

    I face the problem that occasional in one WebApplication
    the following error occures:

    System.Data.SqlClient.SqlException: A severe error
    occurred on the current command. The results, if any,
    should be discarded.
    at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
    at ASP.AnbieterDetail_ascx.WriteLog(String StrID,
    String StrKat) in
    C:\Inetpub\wwwroot\LNO_live\usercontrols\AnbieterD etail.asc
    x:line 38

    This error occures also occasionaly on other Usercontrols,
    in which the SQLServer is accessed. The problem is, that I
    can not reproduce the error. Sometimes it works and
    sometimes not, with the same data in the webform.
    Other Applications with the same basic Architecture do not
    have this problem.
    I looked arround in the internet and saw that a few others
    face a similar problem.

    The Application runs on the Webserver with
    Windows2000AdvancedServer installed and The Database on a
    Databaseserver also with Windows200AdvancedServer
    installed and SqlServer2000.

    If there is any solution to my problem, or if you need
    more information just let me know.

    Thanks a lot.

    Sven

    Sven Schimmel Guest

  2. Similar Questions and Discussions

    1. java.sql.SQLException Error when Creating New DSN inCFMX Administrator
      I'm having a similar issue...did you ever get any news on how this was solved? Thanks, Heather
    2. Please Help!! Error occured parsing XML file
      Hi there, Could someone please help me. I am learning dyanmic web design using dreamweaver MX with ASP pages. When I try to view my index.asp...
    3. java.sql.SQLException: ERROR: Relation 38868974 does not exist
      I've come across a problem which is only happening intermittently, and having a difficult time finding information to help me determine what is the...
    4. Getting the last query when an error occured
      HI ! Well, another one ! :) Yes, once again a little question for the newsgroup ! So i begin my explanation : with ESQL/C As all my "C"...
    5. Exception occured error
      I'm getting an Exception occured error on line 4 (For i =1...) <% Function ProperCase(strIn) strOut = "" boolUp = True For i = 1 To Len(strIn)...
  3. #2

    Default Re: occasional SqlException 'a severe error occured...'

    Sven,

    What does the SQL statement do? Are you working with Stored Procedures? Are
    you doing any row locking (implicit or explicit) that might cause an update,
    insert or deltion to fail?

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "Sven Schimmel" <SvenSchimmelMannheim@hotmail.com> wrote in message
    news:0a1e01c3575f$11ae2180$a601280a@phx.gbl...
    > Hello all,
    >
    > I face the problem that occasional in one WebApplication
    > the following error occures:
    >
    > System.Data.SqlClient.SqlException: A severe error
    > occurred on the current command. The results, if any,
    > should be discarded.
    > at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
    > at ASP.AnbieterDetail_ascx.WriteLog(String StrID,
    > String StrKat) in
    > C:\Inetpub\wwwroot\LNO_live\usercontrols\AnbieterD etail.asc
    > x:line 38
    >
    > This error occures also occasionaly on other Usercontrols,
    > in which the SQLServer is accessed. The problem is, that I
    > can not reproduce the error. Sometimes it works and
    > sometimes not, with the same data in the webform.
    > Other Applications with the same basic Architecture do not
    > have this problem.
    > I looked arround in the internet and saw that a few others
    > face a similar problem.
    >
    > The Application runs on the Webserver with
    > Windows2000AdvancedServer installed and The Database on a
    > Databaseserver also with Windows200AdvancedServer
    > installed and SqlServer2000.
    >
    > If there is any solution to my problem, or if you need
    > more information just let me know.
    >
    > Thanks a lot.
    >
    > Sven
    >

    CT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139