Skip to content

[Windows] Connectivity.ConnectivityChanged Exception #21990

@baaaaif

Description

@baaaaif

Description

Following up on
#19261
and
#20757

i got a strange new exception.
Case is similar to #20690
Windows went to hibernate and lost company vpn connection.

I'm on Windows 11
image

and got this exception

UNHANDELED EXCEPTION IN audius.dashface.App:
Message:Aufruf wurde durch Messagefilter abgebrochen. (0x80010002 (RPC_E_CALL_CANCELED))
Stack:   at Microsoft.Maui.Networking.ConnectivityNativeHelper.INetworkListManager.GetNetworks(NLM_ENUM_NETWORK flags)
   at Microsoft.Maui.Networking.ConnectivityImplementation.get_NetworkAccess()
   at Microsoft.Maui.Networking.ConnectivityImplementation.SetCurrent()
   at Microsoft.Maui.Networking.ConnectivityImplementation.OnConnectivityChanged(ConnectivityChangedEventArgs e)
   at Microsoft.Maui.Networking.ConnectivityImplementation.OnConnectivityChanged(NetworkAccess access, IEnumerable`1 profiles)
   at Microsoft.Maui.Networking.ConnectivityImplementation.OnConnectivityChanged()
   at Microsoft.Maui.Networking.ConnectivityImplementation.NetworkStatusChanged(Object sender)
   at WinRT._EventSource_global__Windows_Networking_Connectivity_NetworkStatusChangedEventHandler.EventState.<GetEventInvoke>b__1_0(Object sender)
   at ABI.Windows.Networking.Connectivity.NetworkStatusChangedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender)
Inner Ex.:

this pointed out a second issue

if (OperatingSystem.IsWindowsVersionAtLeast(11))

if (OperatingSystem.IsWindowsVersionAtLeast(11))
is always false, because this OSVersion for Windows 11 is still 10

cc: @Foda

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

Nightly / CI build (Please specify exact version)

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11, Build 22631. Maui 8.0.40-nightly.10539

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions