Strange error?!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RGVhbiBHYXJyZXR0?=

    #1

    Strange error?!

    We have a .NET app that selects records from a SQL Server 2000 database, and
    then sends out e-mails using the System.Web.Mail class in .net

    This has worked for months, and then suddently, the runtime error below
    starts happening. If we select a small number of records, everything is fine,
    but if we select say 1,000 records then this error occurs each time.

    I can't find any information about this error message. Could it be due to
    something in a recent Windows Update? It is running on a Windows Server 2003
    server.

    Thank you for any hints!



    >System.Compone ntModel.Win32Ex ception: The parameter is incorrect at
    >System.Diagnos tics.EventLog.W riteEvent(Int32 eventID, Int16 category,
    >EventLogEntryT ype type, String[] strings, Byte[] rawData) at
    >System.Diagnos tics.EventLog.W riteEntry(Strin g message,
    >EventLogEntryT ype type, Int32 eventID, Int16 category, Byte[] rawData)
    >at System.Diagnost ics.EventLog.Wr iteEntry(String message,
    >EventLogEntryT ype type, Int32 eventID, Int16 category) at
    >System.Diagnos tics.EventLog.W riteEntry(Strin g message,
    >EventLogEntryT ype type, Int32 eventID) at
    >System.Diagnos tics.EventLog.W riteEntry(Strin g
    >message, EventLogEntryTy pe type) at
    >BulkEmail.send mailconfirm.Pag e_Load(Object sender, EventArgs e) ?
  • Michael Nemtsev

    #2
    Re: Strange error?!

    Hello Dean,

    DGSystem.Diagno stics.EventLog. WriteEntry(Stri ng
    DGmessage, EventLogEntryTy pe type) at

    relating the error stack you are writing to the even log and got Win32Exception.
    Are you sure that the source, where are you writing the log, exists?

    ---
    WBR, Michael Nemtsev [.NET/C# MVP].
    My blog: http://spaces.live.com/laflour
    Team blog: http://devkids.blogspot.com/

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    Comment

    Working...