WMI and System.Management.ManagementException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I'm using WMI to query the Event Logs for a particular computer. This
Event Log has over 400,000 entries. The application runs without errors until
record 260,000 then it throws this exception.

Unhandled Exception: System.Management.ManagementException: Quota violation
at System.Management.ManageException.ThrowWithExtendedInfo
(ManagementStatus errorCode)
at
System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at EventLogReporter.Module1.Main()

I've added a try/catch block to the code, but an error is still
occuring. Is there any way to increase the quota to keep this error from
happening?

Thanks!
 
Back
Top