Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Mobile Error: DeviceInformation.FindAllAsync(WiFiAdapter.GetDeviceSelector()) crashs #170

Closed
sdechi opened this issue Sep 22, 2015 · 9 comments

Comments

@sdechi
Copy link

sdechi commented Sep 22, 2015

On the actual Windows Mobile build on my Lumia 930, the Method
DeviceInformation.FindAllAsync(WiFiAdapter.GetDeviceSelector()); is crashing with an Exception saying:"The parameter is incorrect"

It works on Windows 10 desktop version

UPDATE: It works on the actual Mobile build of the Lumia 830... seems to be a problem of the 930?

Greetings,
Sascha

@HelgeKeck
Copy link

i have the same Problem, do you already have an solution?

@Sohra
Copy link

Sohra commented Oct 12, 2015

I also can't get this sample to work, I have a Lumia 930 (build 10536.1004), and a Surface Pro 3.

I can't even begin to describe exactly what happens, because I regularly experience different behaviour with each attempt. Sometimes I get prompted on the advertiser end to connect, but regardless of which, it will always fail to connect, and usually due to a timeout. Never once have I ever had a session appear in the Connected Devices window.

Right now using the Lumia as connector, the advertiser (SP3) asks to accept the connection, and then both have the status of "Connecting to " then they both ultimately timeout (first the advertiser, then the connector much later).

If I reverse roles and connect from the SP3, the Lumia doesn't ask for permission to connect and both apps will display "Devices connected on L2, listening on IP Address: 192.168.173.1 Port: 50001", but then both also timeout, and eventually the status changes to Disconnected.

I've seen a bunch of other behaviours too, but I'd be going from memory to remember the exact error codes and messages. Numerous times (after different combinations of behaviour I've seen) "a method was called at an unexpected time HRESULT: 0x8000000E...), whether that was attempting to abort advertising or some other operation. I've seen "Only one usage of each socket address (protocol/network address/port) is normally permitted."

@gc-codes
Copy link

A few same issues being experienced as mentioned above. Unfortunately couldn't figure out exact problem. Have tried with a few bunch of devices in different combination. No success!

@Sohra
Copy link

Sohra commented Oct 16, 2015

Tested again after installing KB3097617 this morning, and pulling down the October 2015 Update 2 commit, still can't establish anything more than "Devices connected on L2" and "waiting for client to connect." I have not however, tested using the new 10549 Mobile build (waiting for one I can upgrade to from 10536.1004).

@Sohra
Copy link

Sohra commented Oct 17, 2015

Tested again after upgrading 930 to build 10549. When functioning as the advertiser and another device attempts to connect to it (10240), it throws "FromIdAsync task threw an exception: System.Exception: Element not found (Exception from HRESULT: 0x80070490)"

When reversing the roles, the 930 asks me to enter a PIN to pair, after entering a 'Q' it says "Connection failed" and on the other device always throws the same exception quoted above. Tried again entering a number and after disabling the textbox, it sits there waiting - meanwhile the watching end again, has the 80070490 error.

@sevenate
Copy link

Just adding my 0.2c - experiencing same error ("The parameter is incorrect") on Lumia 635 with Windows 10 Mobile 10.0.10549.4. And it works fine on Windows 10 Pro Build 10565. Interesting to note that I have wi-fi analizer app installed on this phone and it works fine using this API (assuming there is no other way to get the list of wi-fi adapters in the system).

@sevenate
Copy link

Ok, calling WiFiAdapter.FindAllAdaptersAsync() instead did the trick for me.

@Sohra
Copy link

Sohra commented Nov 20, 2015

After resolving a problem not being able to deploy the app to my mobile for quite some time (information here worked for me), I tested again running 10586.11 on both SP3 and Lumia 930.

With the phone operating as advertiser and the SP3 attempting to connect to it, it first failed with "Connect operation threw an exception: A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)"

I reversed the roles, and was able to establish a session, and successfully send a message from each device to the other.

Reversing back to the original test, now that the two devices had been paired successfully, having the phone function as advertiser I was able to again establish a connection, and send a message from each device to the other.

@oldnewthing
Copy link
Member

This is an old issue. If you still are experiencing the problem, please comment and I will reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants