.NET

Reply
New Member
Araw
Posts: 1
Registered: ‎06-14-2011
Message 1 of 5 (1,828 Views)
Accepted Solution

Namespace 'ApplicationServices' does not exist in 'Autodesk.AutoCAD'

1828 Views, 4 Replies
06-14-2011 04:10 PM

Hi guys!

 

Well, you guessed, I'm new into AutoCAD programming.

I'm using VS2010 and AutoCAD 2012.

 

So, I have referenced acdmgd and acmdg but but I always get this error. Same error for EditorInput namespace.

ApplicationServicesNamespace.jpg

 

I tried to reference dll from SDK or AutoCAD but same error:
"C:\ObjectARX 2012\inc"

"C:\Program Files\Autodesk\AutoCAD 2012 - English"

 

 

This is all I got when browsing the dll:

 

 

I'm also getting this warning:

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. 


Thanks you for your help!

Hi,

 

Are you using VS2010 (or Visual Express 2010)? That is required.

 

After that, for C#, go to project properties, application tab, then select ".NET Framework 4.0" at target list (do not select Client Profile)

 

Regards,

Augusto Goncalves

Autodesk Developer Network

ADN Support Specialist
augusto.goncalves
Posts: 387
Registered: ‎04-30-2009
Message 2 of 5 (1,789 Views)

Re: Namespace 'ApplicationServices' does not exist in 'Autodesk.AutoCAD'

06-15-2011 06:29 AM in reply to: Araw

Hi,

 

Are you using VS2010 (or Visual Express 2010)? That is required.

 

After that, for C#, go to project properties, application tab, then select ".NET Framework 4.0" at target list (do not select Client Profile)

 

Regards,

Augusto Goncalves

Autodesk Developer Network

Regards,



Augusto Goncalves
Autodesk Developer Network
*Expert Elite*
norman.yuan
Posts: 1,045
Registered: ‎04-27-2009
Message 3 of 5 (1,787 Views)

Re: Namespace 'ApplicationServices' does not exist in 'Autodesk.AutoCAD'

06-15-2011 06:54 AM in reply to: Araw

Have you also set reference to acmgd.dll, which is the containing assembly of the namespace "Autpdesk.AutoCAD.ApplicationServices".

 

Unless you are doing RealDwg development, you ALWAYS need to set reference to both acdbmgd.dll AND acmgd.dll.

 

But in your case, this is because of .NET version exception causes this issue

 

Valued Contributor
RyanBotha
Posts: 98
Registered: ‎01-15-2007
Message 4 of 5 (1,548 Views)

Re: Namespace 'ApplicationServices' does not exist in 'Autodesk.AutoCAD'

04-05-2012 01:44 AM in reply to: augusto.goncalves

Hello, 

 

My project is very similar. Sometimes it does compile though! Just before a compile, there will be no errors, but as I hit compile, I get the same errors as shown above. Both references have been added. 

 

I am using VB though, and not C#. I cannot find the .NET Framework 4.0 selection in the project properties. Anything else I can try.

 

Thank you very much

Ryan

New Member
nehabansal7960
Posts: 1
Registered: ‎11-10-2014
Message 5 of 5 (44 Views)

Re: Namespace 'ApplicationServices' does not exist in 'Autodesk.AutoCAD'

11-10-2014 09:53 PM in reply to: RyanBotha

i am alos facing similar issue.Kindly advise.

 

 

Warning 16 The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "acmgd" depends on. This caused the referenced assembly to not resolve. To fix this, either (1) change the targeted framework for this project, or (2) remove the referenced assembly from the project. InstruStub

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!