Win32Exception

Apr 16, 2008 at 9:41 PM
Hi everyone,

I try to execute the sample code but I got the following thrown exception :
System.ComponentModel.Win32Exception in the GetAvailableNetworkList function (line 277 of Wlanapi.cs).
I got to program an ad hoc network utility and I need it to work :s
Thanks in advance
Valistar.
May 8, 2008 at 5:11 PM
Me too, I have the same problem. The exception occured at:wlanapi.cs (line 634)

Wlan.ThrowIfError(
Wlan.WlanOpenHandle(Wlan.WLANCLIENTVERSIONXPSP2, IntPtr.Zero, out negotiatedVersion, out clientHandle));
Jul 17, 2009 at 8:24 AM

a bit late but ... the solution is to start the wireless zero configuration service in xp and the wireless auto something in vista.

right click my computer -> manage -> services and ... -> services -> right click the service and click start