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

what happen to the file of AcMgd.dll in my project

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
jiallxy
1408 Views, 10 Replies

what happen to the file of AcMgd.dll in my project

 Hi ,

 

Is there somebody can help me?

 

Everytime, I build my project, there is following warning coming out and asks me to remove the reference file "ACMgd".

 

Warning 1

 The referenced assembly "AcMgd" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. AutoCADHoodDWG

 

Best regards,

 

Jusitn

10 REPLIES 10
Message 2 of 11
glanard
in reply to: jiallxy

Hi,

 

- Do you use the correct release of ObjectArx?

- In VS, did you switch its "Local Copy" property to FALSE?

 

Regards,

Message 3 of 11
amanero
in reply to: jiallxy

I suppose that you are working with Autocad 2013, if I'm correct, review yor project properties, the target .NET Framework for your app mus be 4.0 (probably you have 3.5).

Luis Alberto Manero, Geograma.com
Message 4 of 11
jiallxy
in reply to: glanard

Hi

 

I use autocad2012 64bit version with win7 64bit os. The C:\ObjectARX 2012 is my folder for ObjectARX.

 

I use VS 2010 C# to program a stand alone application.

 

all of them are reommended by autodesk's website. They shuould work together properly.

Message 5 of 11
jeff
in reply to: jiallxy


@jiallxy wrote:

 Hi ,

 

Is there somebody can help me?

 

Everytime, I build my project, there is following warning coming out and asks me to remove the reference file "ACMgd".

 

Warning 1

 The referenced assembly "AcMgd" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. AutoCADHoodDWG

 

Best regards,

 

Jusitn



Try retargeting to full .NET 4.0 version instead of Client.
You can also find your answers @ TheSwamp
Message 6 of 11
norman.yuan
in reply to: jiallxy

Now than you mentioned this:

 

<quote>

I use VS 2010 C# to program a stand alone application.

</quote>

 

Please be aware, the Acad .NET API assemblies (acdbmgd.dll/acmgd.dll...) can only be used inside AutoCAD (if you do Acad addin DLL project). You CANNOT use them with stand-alone EXE project.

Message 7 of 11
Alexander.Rivilis
in reply to: jiallxy


@jiallxy wrote:

Hi

 

I use autocad2012 64bit version with win7 64bit os. The C:\ObjectARX 2012 is my folder for ObjectARX.

 

I use VS 2010 C# to program a stand alone application.

 

all of them are reommended by autodesk's website. They shuould work together properly.


Do I understand correctly that you're trying to make external exe-file (not dll-file that will be loaded with NETLOAD command into AutoCAD)? If so, then you can not use acmgd.dll and acdbmgd.dll in your project.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 8 of 11
jiallxy
in reply to: Alexander.Rivilis

Yes, you are right.

 

I have just found that these two dll files only can be used in add-in projects.

 

I have to use COM interop: Autodesk.AutoCAD.Interop

 

The problem is that the COM interop have less good functions and is more difficult to program.

 

I will try to balance which way I should choose.

 

thank you very much!

 

Message 9 of 11
jiallxy
in reply to: norman.yuan

Yes, you are right.

 

I have just found that these two dll files only can be used in add-in projects.

 

I have to use COM interop: Autodesk.AutoCAD.Interop for standalone application.

 

The problem is that the COM interop have less good functions and is more difficult to program.

 

I will try to balance which way I should choose.

 

thank you very much!

Message 10 of 11
jiallxy
in reply to: jeff

Thank you!

 

I changed the framework type, and it works!

Message 11 of 11
ELMODE
in reply to: jiallxy

I HAVE APROPLEM WHEN RUN AUTOCAD 14   in wen 8

 

 ITS SHOW ME MASG ON IT

(( FATAL ERROR: UNHANDLED ACCESS VIOLATION READING 0x0020 EXCEPTION AT 2bfe1dc7h))

help me --- iam need thes program

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