WMI and System.Management.ManagementException

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top