.NET

Reply
Contributor
Posts: 17
Registered: ‎06-19-2012
Message 1 of 2 (565 Views)

Autodesk.AutoCAD.Runtime.Exception: eDuplicateKey

565 Views, 1 Replies
07-10-2012 09:07 AM

Hello,

 

I'm getting a Autodesk.AutoCAD.Runtime.Exception: eDuplicateKey exception when I load an assembly of my plugin on AutoCAD Map 2013.

I've searched in the forum and i saw that this exception might be related to some command method duplicated, but I've checked and i have 4 commands with a different name for the 4.

 

Could you help me on finding why this is happening. By the way, I've installed the 2013 autocad .net wizard for VS2010, and everytime I create a AutoCAD Project, it creates myCommands.cs, myCommands.resx and myCommands.Designer.cs. This is normal? Could this be related to the issue that i'm reporting?

 

Thanks and kind regards,

Diogo Santos

ADN Support Specialist
Posts: 349
Registered: ‎05-22-2006
Message 2 of 2 (535 Views)

Re: Autodesk.AutoCAD.Runtime.Exception: eDuplicateKey

07-11-2012 05:02 PM in reply to: DiogoSantos

Those files should be there in your project.

 

Are you sure you've not duplicated a global or local command name in your CommandMethod attributes, or that you've not setup demand load settings that are somehow trying to load two versions of your plug-in DLL?

 

Other than that, its a bit hard to help if you don't post a simple project or any code.

 

Cheers,

Stephen Preston
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community