When using the GUI component Inventory tree, its popupmenu allows you select a "wear" command when the item in the tree selected is of type InventoryFolder.
This throws an exception because the defaultMenuItem_Click event handler is attempting to cast whatever it is given as an object of type "InventoryItem".
seems to you will need to recurse that folders items prior to attaching them, and pass each to client.appearance.attach function. would do it myself but I'm lazy, so i'm just gonna add a quick workaround to keep the error from happening.
Create an instance InventoryTree on a form.
Connect to your account on SL or OSGrid.
Right click on an inventory folder, and attempt to attach it.
will include this with an additional bugfix to another wearable problem in another entry. sorry for the extra garbage in your bug tracking system.
Decided tp reopen this. This bug occurs because the code attempts to typecast an InventoryFolder as InventoryItem. No check is done to avert this issue.