I'm trying to develop a Winows Vista SideBar Gadget using the System.Network.Wireless Object.
When I try to get the Wireless-connection-information the first time, everything works well, but when I try to read the data again, an error occurs.
MyCode:
function getwlan( ) {
try {
wlanip.innerHTML =System.Network.Wireless.address;
wlandns.innerHTML = System.Network.Wireless.primaryDNSAddress;
wlansec.innerHTML = System.Network.Wireless.secureConnection;
wlansignal.innerHTML = System.Network.Wireless.signalStrength;
wlanssid.innerHTML = System.Network.Wireless.ssid;
} catch (e) {
wlanssid.innerHTML = "Fehler";
}
}
As I said, when I call the getwlan-function again, wlanssid.innerHTML gets "Fehler" from catch.
What am I doing wrong
Thanks

Error using System.Network.Wireless
Brett H.
Hi,
it also doesn't work. I'm running the RC2, is that problem fixed in RTM-version of Vista
David Davis
It should work for both secure and unsecure networks.
You are correct that the en-US folder is probably the cause of your non-installable gadgets. If the gadget author wants to run on any language, they should put their files off the root of the gadget, instead of in a localized subfolder. I know the gallery site had some issues where it would present gadgets that didn't actually work on the selected language - I'm not sure if that is fixed yet or not. If you are savvy enough to edit the gadget files, its easy to fix - just copy the files up from the localized subdirectory into the root directory of the gadget.
As for the 'Cpu Meter (Dual Core)' gadget not working right - please contact the gadget author and let them know.
Madhur Bhardwaj
That should work. Are you running the RTM version of Vista Also, try the following and let me know if you observe any change:
mel_mel
Oh, now it works well on one PC, don't know why. But on the other PC, now I get always an errors. (WLan-Adapter is connected!)
My second problem is, that I cann't install some Gadgets downloaded from the Windows Gadget Gallery, also when the descriptions says, that they are developed/tested for Windows Vista RC2.
ThomasJaeger
I thing it depends on the connection type. At home, where I have a WPA-secured connection, now it works fine, but for example at the university, where I connect to an unsecured network, i don't get any connection information. (I thought that only the issecured property should be false)
I have the german x86-version of vista. I cann't install nearly every gadget (neither on desktop PC nor on Laptop), for instance I tried to install the Battery Monitors, Outlook info and the Cpu Meter (Single and Dual Core). I always see the dialog "do you want to install " where I click on "install", but nothing happens. Could it be, because of the gadget-files only contains an en-US folder But why is it displayed on the german Gadget download site then I thought the en-US folder inside the gadgetfile only represents the language of the gadget and not the language of the required operating system.
An example for a running gadget is the Gmail Quick Login and Vista countdown gadget.
Last but not least I have an interesting effect with the Cpu Meter (Dual Core) Gadget. After installing the gadget a clear white gadget with 50x25pixel is added.
And one last question, also when it doesn't refers to the wireless API:
Now I also use the Shell.Drive. The driveType property of my floppy drive returns "2" (removable drive) and not as expected "1" for floppy drive. And is there a way to find out, wheather there is a disk in drive, because of all properties (isReady,...) try to read for the floppy first, but when there is no disk inside, it only makes disturbing noises.
Thanks a lot
Sandra Mace
There was a bug where repeatedly calling the Wireless APIs could eventually fail, which sounds similar to what you describe. I don't recall if it was fixed before or after RC2.
For your downloaded gadgets issue - what language of Vista are you running And which gadget has the problem I suspect that the gadget is hard-coded not to work on whatever language you are running, but if you give me the details I can check and know for sure.