Unanswered: ADO.NET infomessage event not firing when connection is broken
I have looked at several ADO.NET resources and they all say to use the infomessage event handler. I have added the code to my form but when I disconnect the network cable, it does not fire.
I have also read that infomessage is for server error messages below 10. I have tested this by creating a stored proc that raises a custom error of severity 8. When I execute this, it does fire the infomessage event handler, so I know that my code works.