runtime icon indicating copy to clipboard operation
runtime copied to clipboard

IPAddress.ScopeId/Address exception messages should mention IPv4/IPv6

Open MihaZupan opened this issue 1 year ago • 4 comments

is it feasible to improve the exception message or stack trace then?

This actual message was not very informative:

System.Net.Sockets.SocketException (95): Operation not supported
   at System.Net.IPAddress.ThrowSocketOperationNotSupported()
   at System.Net.IPAddress.get_ScopeId()

In fact, for some time I thought this error was related to a concurrent execution bug.

Originally posted by @64J0 in #118725

MihaZupan avatar Aug 14 '25 13:08 MihaZupan

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

I’d like to take this. I’ll send a PR today.

azazi-sa avatar Aug 18 '25 17:08 azazi-sa

Thank you for the interest here. I believe @ArminShoeibi mentioned they were going to look at it in a linked issue as well.

MihaZupan avatar Aug 18 '25 18:08 MihaZupan

no worries. thanks 👍

azazi-sa avatar Aug 18 '25 18:08 azazi-sa