First chance exception

I recieve this error message when trying to run a program that is split into a server part and a client part. The client connects to an object at the server and at the first call to the object at the server I get this error message:
"A first chance exception of type 'System.InvalidOperationException' occurred in system.dll

Additional information: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly."

After I've got this error message the connection is working so there does not seam to a fatal error.

My question is what a "first chance exception" is.
MartinLithellAsked:
Who is Participating?
 
CJ_SConnect With a Mentor Commented:
It is the first specialized exception that can be caught.

For example you should catch the DividedByZeroException before you catch the normal Exception.

Regards,
CJ
0
All Courses

From novice to tech pro — start learning today.