Connecting without using Profile

Apr 29, 2010 at 8:57 AM

Hi All,

I am trying to connect with SSID without using PROFILE, everytime i try to connect i get this error " The parameter is incorrect ".

Code for connection:

mobjWLanClient.Interfaces[Convert.ToInt32(cboNetworkNames.SelectedValue)].Connect(Wlan.WlanConnectionMode.Auto,
Wlan.Dot11BssType.Any, arrAvailableNetworks[Convert.ToInt32(cboAvailableNetworks.SelectedValue)].dot11Ssid, Wlan.WlanConnectionFlags.AdhocJoinOnly);

The network BSS type is infrastructure. What is the best way to connect with the WLAN ?

Looking forward for your replies.

Regards,
Usman Javed

 

Oct 8, 2016 at 10:31 PM
Edited Oct 8, 2016 at 10:31 PM
I am having same problem with code from this repository. I tried NuGet package and it seems to work. Not sure what the difference is. Hopefully, the packaged fixed the issue. I hope Microsoft can provide more samples for various scenarios when they see so many people asking questions here without any response.