Skip to content

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

@MihaZupan

Description

@MihaZupan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Netgood first issueIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions