For All persons that face to this problem in their first step.
in the Visual studio in References for acdbmgd.dll and acmgd.dll, change their "Copy Local" properties to "False"
for more information Refer :
http://forums.autodesk.com/t5/NET/Unknown-Commands/m-p/2616003/highlight/true#M17273
Regards
Rise
Hey Michael,
The only thing I have noticed different with VB and C# is if you create a project using the AutoCAD templates VB's application type is a WPF class library and C# output type is a Class library.
I do not know if that would have anything to do it as I have never seen an option to select a WPF class library.
And using 2007 I do not know if you would use the templates.
I've had this happen before. The problem is usually an error in the init section. If you get one, AutoCAD just return to the command prompt without informing you there is an error (How RUDE :))
Add a try/Catch Block in your Init section. and trap it there. IIRC, AutoCAD is in an unknown state to your app, so you might not be able to get the editor, if not, use standard logging functions to log the error
HomeBoy Out