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

VS2003 and VS2005 On Same PC

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
228 Views, 5 Replies

VS2003 and VS2005 On Same PC

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
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

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
Message 3 of 6
ChrisArps
in reply to: Anonymous

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
Message 4 of 6
Anonymous
in reply to: Anonymous

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
Message 5 of 6
Anonymous
in reply to: Anonymous

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
Message 6 of 6
ChrisArps
in reply to: Anonymous

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

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