1

I am developing a SignalR application and when something wrong happens during a SignalR call from client, I would like to propagate the exception back to the client. However, instead of sending the exception right back to the client, Visual Studio breaks on:

HubException was unhandled by user code

If I hit F5 to continue, the exception correctly propagates back to the client.

Is there a way to teach Visual Studio to just ignore certain classes of exceptions during hub execution?

This solution does not work - it catches other exceptions, but VS still breaks on the HubException: How to NOT breaking on an exception?

Community
  • 1
  • 1
ticcky
  • 688
  • 6
  • 17
  • 1
    Check to see if you've got break on exception for that type... Ctrl+Alt+E to launch dialogue. If so turn it off. Let me know if that's the issue and I'll add as an answer – Ian Jul 09 '14 at 09:19
  • Ian, thanks, it works, but somebody has already posted the right answer a few seconds before you. – ticcky Jul 09 '14 at 12:34

1 Answers1

4

in a code window pres CTRL+D E to open the Exceptions window -> Add -> enter HubException and uncheck Thrown and User-unhandeled

enter image description here

user1859022
  • 2,585
  • 1
  • 21
  • 33