.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
First off, you may have seen this before here...
However, that does work for me, not sure why. I'm using VB 2010 Express, and really enjoying it! When I add my references, acdbmgd and acmgd from AutoCAD 2012 folder, everything looks good. When I hit compile, i get the errors shown in the attachment.
What have I done wrong?
Thank you for your help.
Regards & Happy Easter
Ryan
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
hi ryan, just an idea, have you tried setting the reference path of the acmgd file to the downloaded, appropriate sdk folder (as opposed to the autodesk one)?
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I had tried that, but to make sure, I tried it again, with not success. If I'm correct in understanding you, its the one that defaults to C:\ObjectARX 2012\inc
I also ran a repair on .NET framework 4., and ran the 3.5 SP1 install too. Nothing changed.
Hmmm, what now?
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
So, I found the advanced compiler options! It was set to '.NET 4 Framework Client Profile'. If I change it to .'NET Framework 4', it compiles, but doesn't run.
Error is thrown before form appears.
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
does acad2012 know that you are now targeting .net 4.0? i.e. have you allocated the acad configuration file on your system and changed version to 4.0?
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm a bit rusty. And to be honest, have no idea what you just asked me ![]()
How would I do that last bit. Apologies for the greeness! ![]()
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
sorry, was a bit short.
on your main drive should be the autodesk file for your acad application and in there an acad configuration file (either .exe or .config). this config file contains the acad's target .net framework (and not much more) which should conform to the framework you set for you project, as you say 4.0 (and not be commented out); you can open and edit the config file e.g. with notepad
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
No Problem!
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
<!--All assemblies in AutoCAD are fully trusted so there's no point generating publisher evidence-->
<runtime>
<generatePublisherEvidence enabled="false"/>
</runtime>
</configuration>
This is in a file called acad.exe.config. Presuming that is v4.0...
I'm runnning Win7 x64 if that makes a difference...
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
i'm stuck. recap: applicationservices namespace found after project's target framework set to 4.0; acad config file also 4.0; project compiles;
"...but doesn't run"- you start debugging but no feedback in the immediate window, hit breakpoints, any exceptions thrown etc?
Re: 'Applicati onServices ' is not a member of 'AutoCAD'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
and you're aware of this?
http://forums.autodesk.com/t5/NET/Check-out-the-se



