.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with AutoCAD 2010 and C#

17 REPLIES 17
Reply
Message 1 of 18
stardust1611
3524 Views, 17 Replies

Problem with AutoCAD 2010 and C#

I have created an application in Visual Studio 2008 (it's not SP1) with C# and it worked perfectly with AutoCAD 2009. But, now, with 2010 I get this error:

Application does not support just-in-time (JIT)
debugging. See the end of this message for details.

************** Exception Text **************
System.Exception: The component 'Autodesk.AutoCAD.AcInfoCenterConn.MyAutoCADBalloon' does not have a resource identified by the URI '/AcWindows;component/infocenteracconn/myautocadballoon.xaml'.
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Autodesk.AutoCAD.AcInfoCenterConn.MyAutoCADBalloon.InitializeComponent()
at Autodesk.AutoCAD.AcInfoCenterConn.MyAutoCADBalloon.ShowInfoBalloon()
at Autodesk.AutoCAD.AcInfoCenterConn.InfoCenterManager.AcadApplication_Idle(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Autodesk.AutoCAD.ApplicationServices.Application.raise_Idle(Object value0, EventArgs value1)
at Autodesk.AutoCAD.ApplicationServices.Application.OnIdle()


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
acdbmgd
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcdbMgd.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.1
Win32 Version: 9.00.30729.1
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_e163563597edeada/msvcm90.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PresentationFramework
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
PresentationCore
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109)
CodeBase: file:///C:/Windows/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
AdWindowsInterop
Assembly Version: 0.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AdWindowsInterop.DLL
----------------------------------------
AdWindows
Assembly Version: 2.1.0.0
Win32 Version: 2.1.123.55
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AdWindows.DLL
----------------------------------------
acmgd
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/acmgd.DLL
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.21022.8 built by: RTM
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
AcWindows
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcWindows.DLL
----------------------------------------
AcWindows.resources
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/en-US/AcWindows.resources.DLL
----------------------------------------
acmgd
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///D:/Central%20Plexus/VB%20Projects/Carpentry/Carpentry/bin/Debug/acmgd.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
AcTcMgd
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcTcMgd.DLL
----------------------------------------
AcCui
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcCui.DLL
----------------------------------------
Carpentry
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Central%20Plexus/VB%20Projects/Carpentry/Carpentry/bin/debug/Carpentry.dll
----------------------------------------
ContextualTabSelectorRules
Assembly Version: 0.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcWindows.dll
----------------------------------------
PresentationFramework.Aero
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1109 (lh_tools_devdiv_wpf.071009-1109)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework.Aero/3.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
ManagedMC3
Assembly Version: 2.20.0.0
Win32 Version: 3.14.1
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/ManagedMC3.DLL
----------------------------------------
AcWindows
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///D:/Central%20Plexus/VB%20Projects/Carpentry/Carpentry/bin/Debug/AcWindows.dll
----------------------------------------
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
AcLayer
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/AcLayer.DLL
----------------------------------------
AcLayer.resources
Assembly Version: 18.0.0.0
Win32 Version: 18.0.55.0.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202010/en-US/AcLayer.resources.DLL
----------------------------------------

************** JIT Debugging **************
Application does not support Windows Forms just-in-time (JIT)
debugging. Contact the application author for more
information.


I referenced all necessary files in autocad 2010, and I don't understand what's the problem?
17 REPLIES 17
Message 2 of 18

What does your program do? When does the error occur?
Have you tried stepping through your code line by line to find out which line is triggering this message?
-Mark P.
Message 3 of 18
stardust1611
in reply to: stardust1611

My program is Carpentry.dll and as you can see on that error list, it gets loaded. The program consists of three functions (autocad commands): for drawing doors, windows and double doors. I access the autocad com object in them. During debugging these functions do not report any error in them, cause they probably don't have any (they worked in AutoCAD 2009). I also implemented interface IExtensionApplication, and because of that i have two functions: Initialize and Terminate. Terminate contains no code, and initialize truggers yet another function: loadtoolbars. This function loads my customization cuix file with ads_queueexpr, and it doesn't appear to be triggering the error, because the customization file loads fine and the toolbar appears, and i get the message in the editor that the customization file was loaded successfully. The error appears after everything has been loaded and after the Ribbon command appears in the editor, and after the ribbon has been completely loaded. The error can be ignored by pressing the continue button, and then i try to trigger my commands door, window and ddoor but i get "Unknown command".
Message 4 of 18
stardust1611
in reply to: stardust1611

I found out in the help files that AcInfoCenterConn class belongs to this namespace: Autodesk.AutoCAD.AcInfoCenterConn.AcInfoCenterConn, and I tried to add it but that gives me following error message: The type or namespace name 'AcInfoCenterConn' does not exist in the namespace 'Autodesk.AutoCAD' (are you missing an assembly reference?). It seems that I'm missing some dll in the references. Which one would that be?
Message 5 of 18
Anonymous
in reply to: stardust1611


Google AcInfoCenterConn

 

///kdub


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
I
found out in the help files that AcInfoCenterConn class belongs to this
namespace: Autodesk.AutoCAD.AcInfoCenterConn.AcInfoCenterConn, and I tried to
add it but that gives me following error message: The type or namespace name
'AcInfoCenterConn' does not exist in the namespace 'Autodesk.AutoCAD' (are you
missing an assembly reference?). It seems that I'm missing some dll in the
references. Which one would that be?
Message 6 of 18
stardust1611
in reply to: stardust1611

In autocad 2010 there are missing two assemblies that were present in autocad 2009: AcInfoCenterConn.dll and AdInfoCenter.dll. I found out that namespace AcInfoCenterConn contains IExtensionApplication interface and it's methods: Initialize() and Terminate(). But there was no need to add reference to AcInfoCenterConn.dll and AdInfoCenter.dll in AutoCAD 2009 and it worked well. Did these two assemblies change name?
Message 7 of 18
Anonymous
in reply to: stardust1611

Those DLLs no longer exist in AutoCAD 2010. The components that were in them
are now in the main interop DLLs, but the error message you show suggests
that they're still looking for the resources as if they were still in those
DLLs.

Looks like a bug.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6166543@discussion.autodesk.com...
In autocad 2010 there are missing two assemblies that were present in
autocad 2009: AcInfoCenterConn.dll and AdInfoCenter.dll. I found out that
namespace AcInfoCenterConn contains IExtensionApplication interface and it's
methods: Initialize() and Terminate(). But there was no need to add
reference to AcInfoCenterConn.dll and AdInfoCenter.dll in AutoCAD 2009 and
it worked well. Did these two assemblies change name?
Message 8 of 18
stardust1611
in reply to: stardust1611

Could this be solved by adding the reference to correct dll where this namespace is located? If yes, what are the names of these main interop dlls you mentioned? If this really is a bug, whome should i inform about it? Thanks.
Message 9 of 18
Anonymous
in reply to: stardust1611

You should already have a reference to the DLL that contains
those components (acmgd.dll).

I don't think you can fix this, and I'm not even sure what's
causing it.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6167065@discussion.autodesk.com...
Could this be solved by adding the reference to correct dll where this
namespace is located? If yes, what are the names of these main interop dlls
you mentioned? If this really is a bug, whome should i inform about it?
Thanks.
Message 10 of 18
stardust1611
in reply to: stardust1611

The info center is in AcWindows.dll. I found out that on this page: http://discussion.autodesk.com/forums/message.jspa?messageID=6157330 , where even you participated in the discussion just 6 days ago. I added the reference to it, and now i have that namespace, but to no avail. The error is still there. Edited by: Stardust1611 on Apr 21, 2009 6:59 PM
Message 11 of 18
stardust1611
in reply to: stardust1611

Mr Tanzillo, have you perhaps found out solution to this problem?
Message 12 of 18
Anonymous
in reply to: stardust1611


Did you read my last reply?


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Mr
Tanzillo, have you perhaps found out solution to this
problem?
Message 13 of 18
stardust1611
in reply to: stardust1611

Hello again mr. Tanzillo. It appears that this was not a bug at all. I noticed I didn't set Copy Local to false on some of my references, and when I did that, the error disappeared. Thanks anyways.
Message 14 of 18
Dave_S
in reply to: stardust1611

I had a similar problem and found this thread by doing a search on myautocadballoon. Tony gave me a hint when Tony said that the DLL no longer exists in AutoCAD 2010. I disabled all my third party apps to no avail. Then discovered i had a path set to my old AutoCAD 2009 support directory. I deleted this from my support path and the problem went away. I re-enabled my third party apps and everything works fine.
Thanks.
Message 15 of 18

you can add require dll
Message 16 of 18
stardust1611
in reply to: stardust1611

Hello Tony,
could you try to help with one ancient thread that was not solved? This is the thread: http://discussion.autodesk.com/forums/thread.jspa?messageID=6296180&
Message 17 of 18
Anonymous
in reply to: stardust1611

Can't really tell you much without seeing the code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6296181@discussion.autodesk.com...
Hello Tony,
could you try to help with one ancient thread that was not solved? This is
the thread:
http://discussion.autodesk.com/forums/thread.jspa?messageID=6296180&
Message 18 of 18

Hi everybody,

 

the same error appears within AutoCAD2011 and Visual Studio 2010. After that AutoCAD 2011 doesnt work properly.

The same code works with Sharpdevelop 3.2 and AutoCAD 2010 well.

 

Regards Jürgen.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost