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

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

Anonymous
Not applicable
2,739 Views
10 Replies
Message 1 of 11

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

Anonymous
Not applicable

 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

0 Likes
Accepted solutions (3)
2,740 Views
10 Replies
Replies (10)
Message 2 of 11

glanard
Enthusiast
Enthusiast

Hi,

 

- Do you use the correct release of ObjectArx?

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

 

Regards,

0 Likes
Message 3 of 11

alberto_manero_geograma
Enthusiast
Enthusiast

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
0 Likes
Message 4 of 11

Anonymous
Not applicable

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.

0 Likes
Message 5 of 11

jeff
Collaborator
Collaborator
Accepted solution

@Anonymous 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
Mentor
Mentor
Accepted solution

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.

Norman Yuan

Drive CAD With Code

EESignature

Message 7 of 11

Alexander.Rivilis
Mentor
Mentor
Accepted solution

@Anonymous 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

Anonymous
Not applicable

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!

 

0 Likes
Message 9 of 11

Anonymous
Not applicable

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!

0 Likes
Message 10 of 11

Anonymous
Not applicable

Thank you!

 

I changed the framework type, and it works!

0 Likes
Message 11 of 11

Anonymous
Not applicable

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

0 Likes