Skip to content

Windows: Connectivity check sometimes return NetworkAccess.Unknown #17270

@unombun

Description

@unombun

Description

On Windows checking connectivity returns incorrect value of NetworkAccess.Unknown.

There is this already closed issue: #9972

But this for sure is not fixed because I can still reproduce it.

Steps to Reproduce

Here is the tricky part. I cannot provide any particular repro steps. In my app this can reproduce in some particular screens, in other happens only sometimes.

I tried create a demo sample app but I could not reproduce there.
Of course I tried calling on the main thread the check as a suggestions made in the #9972. But sometimes it works, sometimes not.

It happens also with .Net 8 - preview 7.8842

Link to public reproduction project repository

No sample

Version with bug

7.0.92

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

Exception thrown at 0x00007FFB8C31CF19 (KernelBase.dll) : The application called an interface that was marshalled for a different thread.

Metadata

Metadata

Assignees

Labels

area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-8.0.7fixed-in-9.0.100-preview.1.9973p/1Work that is important, and has been scheduled for release in this or an upcoming sprintpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/windowst/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions