.NET

Reply
*Dale Levesque
Message 1 of 6 (82 Views)

VS2003 and VS2005 On Same PC

82 Views, 5 Replies
09-27-2005 03:40 PM
I have a .Net DLL that I call from Lisp. I have it set up so VS2003 starts
AutoCAD. I then start the VLIDE and load my Lisp project files and run the
app. Everything worked fine until I installed VS2005 this morning. I suspect
that It's a problem with the .Net Framework 2.0 having been installed.

Is there a way to get this to work without uninstalling 2.0?

AutoCAD 2002
*Dale Levesque
Message 2 of 6 (82 Views)

Re: VS2003 and VS2005 On Same PC

09-27-2005 03:43 PM in reply to: *Dale Levesque
It crashes when trying to interpret vla-GetInterfaceObject by the way.

(vl-load-com)
(setq $acad (vlax-get-acad-object))
(setq vbstrcls (vla-GetInterfaceObject $acad "Elevations.BiFolds"))





"Dale Levesque" wrote in message
news:4968760@discussion.autodesk.com...
I have a .Net DLL that I call from Lisp. I have it set up so VS2003 starts
AutoCAD. I then start the VLIDE and load my Lisp project files and run the
app. Everything worked fine until I installed VS2005 this morning. I suspect
that It's a problem with the .Net Framework 2.0 having been installed.

Is there a way to get this to work without uninstalling 2.0?

AutoCAD 2002
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 3 of 6 (82 Views)

Re: VS2003 and VS2005 On Same PC

09-28-2005 06:28 AM in reply to: *Dale Levesque
Navigate to your program files folder and edit the file acad.exe.config to point to a specific version.

It is loading the newest version of the framework by default, that is causing your problem.

Chris Arps
*Dale Levesque
Message 4 of 6 (82 Views)

Re: VS2003 and VS2005 On Same PC

09-28-2005 08:16 AM in reply to: *Dale Levesque
The only file I see is in the 2006 folder but I'm working with AutoCAD 2002.
Will this still work?

Dale

wrote in message news:4969182@discussion.autodesk.com...
Navigate to your program files folder and edit the file acad.exe.config to
point to a specific version.

It is loading the newest version of the framework by default, that is
causing your problem.

Chris Arps
*Dale Levesque
Message 5 of 6 (82 Views)

Re: VS2003 and VS2005 On Same PC

09-28-2005 08:29 AM in reply to: *Dale Levesque
I copied the file into the Acad2002 folder and all is well. Thanks very
much.

"Dale Levesque" wrote in message
news:4969360@discussion.autodesk.com...
The only file I see is in the 2006 folder but I'm working with AutoCAD 2002.
Will this still work?

Dale

wrote in message news:4969182@discussion.autodesk.com...
Navigate to your program files folder and edit the file acad.exe.config to
point to a specific version.

It is loading the newest version of the framework by default, that is
causing your problem.

Chris Arps
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 6 of 6 (82 Views)

Re: VS2003 and VS2005 On Same PC

09-28-2005 08:35 AM in reply to: *Dale Levesque
The .exe normally is the domain that your assemly is loaded into, but since 2002 does not have netload and you are going through COM, that trick may not work.

If it does not, try adding a config file for your dll that specifys the dotnet version.

Example: mystuff.dll file needs a file named mystuff.dll.config in the same folder with the desired version of the framwork.


Chris Arps
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.