<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: errors while build and run old vs c# project while referencing full autocad in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619403#M5797</link>
    <description>&lt;P&gt;Full AutoCAD is required for any AutoCAD programming, be it VBA, or .NET API, DLL or EXE COM automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using AutoCAD 2019, make sure your VisualStudio2017 has .NET 4.7x development components installed (depending on the OS, it is not installed by default, as as with my Win7 box), because AutoCAD 2019 uses .NET 4.7, thus, your VS project should target .NET 4.7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For setting reference to AutoCAD COM interop API, you can either use VS's adding references dialog's COM Tab, find the AutoCAD 2019 type librarry and ObjectDBX Common type library, click OK so that VS would generate the interop assemblies for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the recommended approach is to directly set reference to the interop assemblies coming with AutoCAD installation (Autodesk.AutoCAD.Interop.dll and&amp;nbsp;Autodesk.AutoCAD.Interop.Common.dll), and also make sure they are not be set to "Embedded" and "Copy Local" set to False.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 16:09:45 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2019-02-25T16:09:45Z</dc:date>
    <item>
      <title>errors while build and run old vs c# project while referencing full autocad 2019</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619090#M5794</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to fix a bug in old 2003 vs project created a long time ago in my company. The project references an old autocan version (not sure which version. If it is important I will find it&amp;nbsp; in one of the following days when someone will be in he office).&lt;/P&gt;
&lt;P&gt;At my computer at home I have Visual Studio Community 2017 and I installed an autocad 2019 to test if I can build the old vs project.&lt;/P&gt;
&lt;P&gt;I get&amp;nbsp; about 100 errors of un-recognized type or namespace such as Interop, AcadApplication, AcadDocument, AcadEntity, etc...&lt;/P&gt;
&lt;P&gt;I do see that some autocad includes succeed, for example:&lt;/P&gt;
&lt;P&gt;using Autodesk.AutoCAD.Runtime;&lt;/P&gt;
&lt;P&gt;using Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;using Autodesk.AutoCAD.EditorInput;&lt;/P&gt;
&lt;P&gt;using Autodesk.AutoCAD.Geometry;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to find a solution in google and in the forums here and in VS.&lt;/P&gt;
&lt;P&gt;I understood that it is probably related to adding references to the project, so I entered the COM part of the Reference Manager and added all the autocad 2019 Type Library, all the autocad Map MPolygon Type Library and all autocad/ObjectDBX Common 23.0 Type Library.&lt;/P&gt;
&lt;P&gt;After getting help in the main Forum, I uninstalled the LT version and downloaded and installed the full version.&lt;/P&gt;
&lt;P&gt;I added a reference to the:&amp;nbsp;&lt;SPAN&gt;AutoCAD Focus Control for VBA Type Library, but all the references are&amp;nbsp;still not recognized.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help will be very appriciated.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 14:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619090#M5794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-25T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619296#M5795</link>
      <description>&lt;P&gt;Firstly, you did not say the VS2003 project is what type of app (DLL project, to be run inside AutoCAD, either using AutoCAD API, or using AutoCAD COM API and running with AutoCAD VBA; or EXE project, automating AutoCAD via COM API). Which AutoCAD version then probably is not important here, because you now are using AutoCAD 2019, you need to set references to Acad2019 .NET assemblies anyway, whether using .NET APIs, or COM APIs. However, if that old VS project was targeting AutoCAD2005 or older, it definitely used AutoCAD COM API, not .NET API (thus the references you listed were not used then); but you still need to tell it is DLL or EXE app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you make it clear the project is a DLL or EXE, using AutoCAD .NET APIs or COM APIs, which references you need would be easy/simple to decide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; am not sure why AutoCAD Focus Contrl for VBA is relevant here: it is only needed if in VBA code if modeless form is used and have nothing to do with&amp;nbsp; code in VS (C# or VB.NET), using AutoCAD .NET API or AutoCAD COM API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619296#M5795</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-25T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619348#M5796</link>
      <description>Hi Norman,&lt;BR /&gt;Thank you. I'm new to all of this.&lt;BR /&gt;If I understand correctly what you wrote, then it is a c# exe project using&lt;BR /&gt;autocad API, probably the com API because it is old.&lt;BR /&gt;VBA isn't needed. Somebody answered my question in a different forum here&lt;BR /&gt;and told me to install the full autocad instead of the LT one, and that was&lt;BR /&gt;the only additional reference that I could add.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619348#M5796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-25T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619403#M5797</link>
      <description>&lt;P&gt;Full AutoCAD is required for any AutoCAD programming, be it VBA, or .NET API, DLL or EXE COM automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using AutoCAD 2019, make sure your VisualStudio2017 has .NET 4.7x development components installed (depending on the OS, it is not installed by default, as as with my Win7 box), because AutoCAD 2019 uses .NET 4.7, thus, your VS project should target .NET 4.7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For setting reference to AutoCAD COM interop API, you can either use VS's adding references dialog's COM Tab, find the AutoCAD 2019 type librarry and ObjectDBX Common type library, click OK so that VS would generate the interop assemblies for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the recommended approach is to directly set reference to the interop assemblies coming with AutoCAD installation (Autodesk.AutoCAD.Interop.dll and&amp;nbsp;Autodesk.AutoCAD.Interop.Common.dll), and also make sure they are not be set to "Embedded" and "Copy Local" set to False.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619403#M5797</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-25T16:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619512#M5798</link>
      <description>&lt;P&gt;I realy appriciate your help.&lt;/P&gt;
&lt;P&gt;I was looking all over the Visual Studio 2017 for the place to target the .Net 4.7x development components but couldn't find them.&lt;/P&gt;
&lt;P&gt;It should be in the "Tools-&amp;gt;Choose Toolbox Items"? If yes, I din't find it there.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:41:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619512#M5798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-25T16:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619555#M5799</link>
      <description>&lt;P&gt;I use full VS2017, thus not sure if what I say applies to your VS2017 Community version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your project, go to its "Properties" and on the "Application" tab, the "Target Framework" should be set to .NET Framework 4.7xx. Actually, if you start a new solution, the new solution dialog box should give you chance to choose targeting MS .NET framework. If 4.7x is available in .NET framework dropdown list, you are good to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If 4.7x version is not listed in the dropdown list, it means your VS installation does not include .NET 4.7 development components. If it is this case, you need to run VIsual Studio Installer again, and then choose "Modify"-&amp;gt;"Individual components", then make sure .NET framework 4.7xs are checked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8619555#M5799</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-25T16:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8624433#M5800</link>
      <description>&lt;P&gt;Thank you very much for the help.&lt;/P&gt;
&lt;P&gt;I have run the VS installation and added the .NET 4.7 development components from the list. My computer then needed to reboot, and then I have changed the Target Framework of the project through Properties-&amp;gt;Application tab as you explained.&lt;/P&gt;
&lt;P&gt;The errors are still there.&lt;/P&gt;
&lt;P&gt;Is there something else I need to do?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:14:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8624433#M5800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T12:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625065#M5801</link>
      <description>&lt;P&gt;Now that you have the project target .NET 4.7x, it is very likely the errors are due to the referenced interop assemblies are not correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you removed the old references to AutoCAD COM interop assemblies and re-added with ones from AutoCAD2019. As I previously said, you can either use the ones that comes with AutoCAD installation - Autodesk.AutoCAD.Interop.dll and Autodesk.AutoCAD.Interop.Common.dll; or you can go through "References" dialog box-&amp;gt;COM tab-&amp;gt;AutoCAD 2019 type library and AUtoCAD 2019 DBX Common Type library, so that VS will generate the COM interop assemblies for you. The former is recommended, but make sure to set "Copy Local" to False. For the latter, make sure "Copy Local" is set to True. In both cases, do not embed the interop assemblies into he project (VS default when added COM interop references). Also not, for the former, the code namespace is Autodesk.AutoCAD.Interop[/Common], but if the interop assemblies are generated by VS, the namespace is likely be AutoCAD and AXDBLib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you need to examine the references set in your project, and better yet, remove existing ones and reset them. Then examine the "using [namespace]" direction on top of each code file. I bet if you have massive errors, it is likely just a simple namespace issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to post pictures showing the actual error, if you still cannot solve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 15:41:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625065#M5801</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-27T15:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625177#M5802</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) As you recommended I removed the two refernces.&lt;/P&gt;
&lt;P&gt;2) I wanted to add back the references as you wrote, but in the list in the COM tab there is a list of about 10 of each. Do I need all or only one of each?&lt;/P&gt;
&lt;P&gt;3) I added one of each, but got mixed up of your explanation:&lt;/P&gt;
&lt;P&gt;a. The AutoCAD reference name is Interop.AutoCAD and is locked for editing.&lt;/P&gt;
&lt;P&gt;b.&amp;nbsp;The AutoCAD reference "Copy Local" is "True". I changed it to "False". Is this what you wrote?&lt;/P&gt;
&lt;P&gt;c.&amp;nbsp;The AutoCAD reference "Embed Interop Types" is "True". I changed it to "False".&lt;/P&gt;
&lt;P&gt;d. The AXDBLib reference name is Interop.AXDBLib and is locked for editing.&lt;/P&gt;
&lt;P&gt;e.&amp;nbsp;The AXDBLib reference "Copy Local" is "True". To leave it that way? Is this what you wrote?&lt;/P&gt;
&lt;P&gt;f.&amp;nbsp;The AXDBLib reference "Embed Interop Types" is "True". I changed it to "False".&lt;/P&gt;
&lt;P&gt;4) The namespace written in the code is&amp;nbsp;using "Autodesk.AutoCAD.Interop.Common" for example, but it doesn't recognize the&amp;nbsp;using "Interop"&lt;/P&gt;
&lt;P&gt;I'm adding a screenshot too.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:19:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625177#M5802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625251#M5803</link>
      <description>&lt;P&gt;One more thing:&lt;/P&gt;
&lt;P&gt;On Monday you wrote:&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;However, the recommended approach is to directly set reference to the interop assemblies coming with AutoCAD installation (Autodesk.AutoCAD.Interop.dll and&amp;nbsp;Autodesk.AutoCAD.Interop.Common.dll), and also make sure they are not be set to "Embedded" and "Copy Local" set to False."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And today you also worte about it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried to find where I should do this but didn't find.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please elaborate where this can be done?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:42:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625251#M5803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625329#M5804</link>
      <description>&lt;P&gt;As my last reply said, it is recommended to set reference to the COM interop assemlies provided by Autodesk, which comes with AutoCAd installation, rather than letting VS generates them (by using Reference dialog box-&amp;gt;COM tab).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do to it, you open "Add References" dialog box, clock "Browse..." button, navigate to AutoCAD installation C:\Program files\Autodesk\AutoCAD 2019\", find both Autodesk.AutoCAD.Interop.dll and Autodesk.AutoCAD.Interop.Common.dll. That's it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These 2 interop assemblies contains namespace Autodesk.AutoCAD.Interop.[Common]. Make sure the 2 assemblies are set "Copy Local" to False, "Embed Interop Types" to False.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 17:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8625329#M5804</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-27T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8626888#M5805</link>
      <description>&lt;P&gt;Thank you very much. The last explanation was very helpfull.&lt;/P&gt;
&lt;P&gt;After adding the dll references as you explained, all the errors were gone.&lt;/P&gt;
&lt;P&gt;But now I get an exception while running the code. Maybe you can help me with this too. It looks related.&lt;/P&gt;
&lt;P&gt;In the following line of code:&lt;/P&gt;
&lt;P&gt;m_acadApp = new Autodesk.AutoCAD.Interop.AcadApplication();&lt;/P&gt;
&lt;P&gt;The application throws an exception of type: System.Runtime.InteropServices.COMException.&lt;/P&gt;
&lt;P&gt;Once I got it with: CO_E_SERVER_EXEC_FAILURE, and once with: REGDB_E_CLASSNOTREG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my&amp;nbsp;Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1 folder I have found some&amp;nbsp;System.Runtime dll files, but I didn't find one like&amp;nbsp;System.Runtime.InteropServices.COMException.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me with this one too&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:49:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8626888#M5805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8628294#M5806</link>
      <description>&lt;P&gt;Well, it looks like the code itself it now OK for compiling with correct references. However, you really have not given many details on the application, except for it is an EXE app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it a regular desktop EXE app run by a user, which in turn automates AutoCAD (another application that must run in the same computer) to do something? Or the app somehow runs as some sort of unattended server app?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is former, there is very few reason for that line of code not working, it the user, who runs the application, can also run AutoCAD 2019 in the same computer. If it is latter, I'd say, forget the app, it is not worth your effort doing things that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, not knowing more of your app's details (what it does, how it runs...), cannot suggest more. But keep in mind: using EXE to automate AutoCAD, a heavy desktop app, is hardly a good business solution in most cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8628294#M5806</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-02-28T17:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8632629#M5807</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;This is an internal desktop application (not on server) which is run in our office in order to extact specific information from dwg drawings into our database for further use.&lt;/P&gt;
&lt;P&gt;It runs AutoCAD with a folder full of DWG drawings and collects the relevant information from all drawings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have some more ideas about the problem?&lt;/P&gt;
&lt;P&gt;Thank you very much for the help until now.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 06:48:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8632629#M5807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-03T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8635215#M5808</link>
      <description>&lt;P&gt;Well, I am really not sure what to suggest here with the very limited information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the computer that runs your application, you may want to confirm this:&lt;/P&gt;
&lt;P&gt;1. Run AutoCAD (full AutoCAD, or AutoCAD vertical, such as Acad Map, Acad Civil3d, ..., but not AutoCAD LT!) as CAD user while you are logged into this computer.&lt;/P&gt;
&lt;P&gt;2. If 1 is OK, you run your EXE application. If the code is correct, at least this line of code should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;m_acadApp = new Autodesk.AutoCAD.Interop.AcadApplication();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If not, either the AutoCAD reference is not the same version as the AutoCAD installed in this computer, or the AutoCAD installation is somehow messed up that you may need to reinstall.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Again, unless I know the full details about what are in the computer and see the details of the EXE project, it is really not much to say. How the other hand, for that specific line of code not working, it should not hard to figure out why if someone has access to the computer and to your project code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8635215#M5808</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-03-04T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: errors while build and run old vs c# project while referencing full autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8638541#M5809</link>
      <description>&lt;P&gt;Thank you for all your help.&lt;/P&gt;
&lt;P&gt;I probably found the problem. I downloaded a full AutoCAD trial version which should have worked for a month for evaluating, but after three days the trial ended and when I tried to open the application it wrote that the trial expired.&lt;/P&gt;
&lt;P&gt;I have no idea why it happened.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 21:40:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/errors-while-build-and-run-old-vs-c-project-while-referencing/m-p/8638541#M5809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T21:40:50Z</dc:date>
    </item>
  </channel>
</rss>

