Using AddDevice without a parent group

Whenever I use the RFID Manager, I can add a device without specifying a parent group. I'm trying to do the same thing programmatically using the DeviceManagerProxy's AddDevice method, but I can't get it to work without specifying a parent group. If I pass a null or an empty string ("") for the group, I get the following logged error: "Failed during AddDevice(). Error = Cannot complete the operation on the device or device group as the specified name is either null or empty. Specify a valid name, and then retry the operation."

What do I pass to AddDevice if the parent group isn't wanted?

Thanks.

[636 byte] By [DWimmers] at [2008-2-11]
# 1

In RFID Manager, by default any device would get added to the "RootDeviceGroup". Infact RFID Manager does allow you to add device to a particular group in the "Add device to a group" tab (present in Add Device Wizard) where you can chose a group or even create a new group.

In AddDevice method, if you dont want to add a device to any particular group add it to the "RootDeviceGroup". DeviceGroupDefinition.RootDeviceGroupName has the root device group name, use this as the argument for the parentDeviceGroup.

Thanks,

Keerthi.

KeerthiKiran[MSFT] at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...
# 2
You should be passing "RootDeviceGroup" for the parentDeviceGroup parameter.
Bala-MSFT at 2007-9-28 > top of Msdn Tech,BizTalk Server,BizTalk RFID...