Srv Error 2000 (The server's call to a system service failed unexpectedly.) errors while running server application

Dear Experts,

I'm having a very strange problem regarding a client-server application i've wrote. Let me explain the purpose of the program first:
The program is designed to show different stats of a remote server. At the moment, free disk space, cpu speed, nic speed, fan speed and server temperature are supported.

The server side uses wmi to get values for the Free disk space, Fan speed and server temperature. For the cpu and nic speed I use performance counters that can be defined in the servers settings pane.
The stats are beeing read when the server gets a command from a client (at the moment i'm using only one client) e.g., every 15min the free disk space is beeing read through WMI, every 10 sec fan speed, ... Those timers are configurable on the client side.

So basicly, the server listens for a command, gets a command $FREE from the client, executes the FreeSpace() method and sends the result back to the client who processes it further.

In total, I have two servers. One domaincontroller and one software server (SMS). On the SMS server, the server application is running stable without any problems. Thou, on my DC, the application runs fine untill after a while (read a bunch of hours) the event log is beeing spammed with following error:

Event Type:            Error
Event Source:      Srv
Event Category:      None
Event ID:            2000
Date:            05/11/2008
Time:            9:48:04
User:            N/A
Computer:            <domaincontroller name>
The server's call to a system service failed unexpectedly.

For more information, see Help and Support Center at
0000: 00040000 00540001 00000000 c00007d0
0010: 00000000 c000010a 00000000 00000000
0020: 00000000 00000000 00bd0334

This results in my domaincontroller locking up (printers not reachable, roaming profiles not reachable, ...). Not one of my client computers can connect to my DC... Does anyone has an idea what could be the source of this problem? I just find it very strange that on my software server, it works perfectly as it should.

If you need more detailed information about the program just let me know and I will reply :)
This is not a top of the top quality program, it is used for personal use.

I hope someone can point me in the right direction here. Thanks in advance!

Best regards,
Steven Bruneel
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steven_BruneelAuthor Commented:

I tried the server application with all the wmi processes disabled. The server did not lock up. So for as far as I know, the problem has something to do with a collision between the server application and wmi. Maybe something with permissions?

melmersSenior Software Deveolper/ArchitectCommented:
have you more error entries which are more details in the timespan of the first error message

look at system log and application log.
Steven_BruneelAuthor Commented:
The problem is that I cannot say, the whole log was filled with the same errors...
melmersSenior Software Deveolper/ArchitectCommented:
can you reproduce the error?
If yes you must edit the maximum size of the errorlog. this is possible in the properties of the log.
Steven_BruneelAuthor Commented:
It seems that I can not reproduce the error. It might have been a problem in my code thou. I noticed that for some reason, a client didnt properly disconnect from the program but reconnected to the same server instance again. Making the same client having 2 connections at once. I fixed this error and haven't seen the error again. Hope it stays that way...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.