I am workng on a command extension for Vault 2012 Pro. It builds OK, and I have copied it to the "Extensions" folder. But when I try to open Vault, it will hang until I kill the process and delete the folder from "Extensions".
When I kill the process and I see the following message: "SystemArgumentException- an item with the same key has already been added".
Why am I getting this message and why is it hanging?
(I am not using items).
This is the first I have heard of Vault Explorer hanging because of an Extension load issue. Are you sure that there isn't an error dialog hidden behind another window? Sometimes the errors "pop under" for some reason.
The ArgumentException is from the .NET libraries. So 'item' in this context has nothing to do with Vault Item objects. My guess is that a key is being added to a Dictionary that already has the key.
If you haven't so already, go through the Extension Deployment Checklist. If that doesn't turn up anything, post the source code.
I suggest to check if you don't have two extensions with same name. I saw something similar when developer made a copy of add-in folder under C:\ProgramData\Autodesk\Vault 2012\Extensions. The folder names were different but content of vcet.config file was same.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register