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

.NET and critical error in autocad 2010

4 REPLIES 4
Reply
Message 1 of 5
JosefVesely
501 Views, 4 Replies

.NET and critical error in autocad 2010

Hi,
i have a problem to run my C# .NET programs in autocad 2010. I have dll generate from visual c# express (i used acdbmgd.dll and acmgd.dll from autocad 2008). This work fine in autocad 2008, 2009. But autocad 2010 show this message: "Critical error: Unsupported version of Windows Presentation Foundation" and autocad fall down. Is this because i compile the program with dll from autocad 2008? Thanks for help Edited by: JosefVesely on Oct 29, 2009 9:18 AM
4 REPLIES 4
Message 2 of 5
dhage_kailas
in reply to: JosefVesely

AutoCAD 2010 managed assembly requires target framework 3.0 or higher. You will have change the same by modifying project properties in Visual Studio 2008. This can work with AutoCAD 2007 through 2010 also.

Cheers,
-Kailas Dhage
Message 3 of 5
Anonymous
in reply to: JosefVesely

You can't run an app that was compiled against the 2008 versions of the
managed assemblies on AutoCAD 2010. While it may appear to work, there are
API changes that would cause AutoCAD to fail if your code 'hits' one of
them.

--
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:6280189@discussion.autodesk.com...
Hi,
i have a problem to run my C# .NET programs in autocad 2010. I have dll
generate from visual c# express (i used acdbmgd.dll and acmgd.dll from
autocad 2008). This work fine in autocad 2008, 2009. But autocad 2010 show
this message: "Critical error: Unsupported version of Windows Presentation
Foundation" and autocad fall down. Is this because i compile the program
with dll from autocad 2008? Thanks for help

Edited by: JosefVesely on Oct 29, 2009 9:18 AM
Message 4 of 5
JosefVesely
in reply to: JosefVesely

I don't understand that. Because of that I have installed AutoCAD 2010 on my PC. If I start the mentioned program there, everything works fine. But at work on all PCs with AutoCAD 2010 it fails with mentioned message. Does anyone know what is the problem?
Message 5 of 5
Anonymous
in reply to: JosefVesely

There should be no problem building applications that target AutoCAD 2010,
if you are using the correct managed assemblies from the SDK. What
assemblies are you referencing, and do you have 'CopyLocal' set to false?

--
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:6283385@discussion.autodesk.com...
I don't understand that. Because of that I have installed AutoCAD 2010 on my
PC. If I start the mentioned program there, everything works fine. But at
work on all PCs with AutoCAD 2010 it fails with mentioned message. Does
anyone know what is the problem?

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