<?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: Error creating instance of AcadApplication in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762073#M80430</link>
    <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Were you able to resolve this issue? Apparently, one of our end users is running into similar problem and we aren't quite sure how to go about resolving this.&lt;BR /&gt;
&lt;BR /&gt;
Appreciate your response.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Chandra M.</description>
    <pubDate>Thu, 10 Jan 2008 18:05:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-01-10T18:05:00Z</dc:date>
    <item>
      <title>Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762068#M80425</link>
      <description>"We are having a problem on an end user's machine. Creating an instance of the AcadApplication object via COM has worked on hundreds of machines, however, this one user's machine is generating exceptions.&lt;BR /&gt;
&lt;BR /&gt;
This code writting in VB.NET using VS 2005 (Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common have already been imported):&lt;BR /&gt;
&lt;BR /&gt;
********************************************&lt;BR /&gt;
dim acApp as new AcadApplication&lt;BR /&gt;
********************************************&lt;BR /&gt;
&lt;BR /&gt;
generates a "Creating an instance of the COM component with CLSID{28B7AA99-C0F9-4C47-995E-8A8D729603A1} from the IClassFactory failed due to the following error: 80010001". &lt;BR /&gt;
&lt;BR /&gt;
If I try creating an instance using the old method:&lt;BR /&gt;
&lt;BR /&gt;
********************************************&lt;BR /&gt;
dim acApp as AcadApplication&lt;BR /&gt;
&lt;BR /&gt;
acApp = CreateObject("AutoCAD.Application.17")&lt;BR /&gt;
********************************************&lt;BR /&gt;
&lt;BR /&gt;
a "cannot create ActiveX component" exception is generated. &lt;BR /&gt;
&lt;BR /&gt;
Both methods work on all of our test machines, however, this one user is throwing exceptions. I had him check accout permissions to make sure he has adminitrative rights,which he does, Anti-virus is shut down, he reinstalled Acad 2007 with anti-virus off, and even tried running our EXE on another machine with a similar setup. There is something he has in common between his two machines where access to "AutoCAD.Application" is restricted, corrupted, or doesn't exist. &lt;BR /&gt;
&lt;BR /&gt;
I'm completely wasted at this point trying to figure this out. Any help from you guys on what to look for would be greatly appreciated</description>
      <pubDate>Tue, 12 Sep 2006 19:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762068#M80425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-12T19:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762069#M80426</link>
      <description>It's a long shot, but check this registry setting:&lt;BR /&gt;
&lt;BR /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLE\EnableDCOM&lt;BR /&gt;
&lt;BR /&gt;
If it's set to "N", try setting it to "Y".&lt;BR /&gt;
&lt;BR /&gt;
If this doesn't work, make sure you set it back again.</description>
      <pubDate>Wed, 13 Sep 2006 21:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762069#M80426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-13T21:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762070#M80427</link>
      <description>Thanks for the help.  I really appreciate it.  I'll have him check that and will post the results when they come back.</description>
      <pubDate>Thu, 14 Sep 2006 19:05:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762070#M80427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-14T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762071#M80428</link>
      <description>These steps are for Windows XP. Let us know if this is not the case.&lt;BR /&gt;
&lt;BR /&gt;
1.) Make sure the Service Pack level of AutoCAD is the same on both machines.&lt;BR /&gt;
&lt;BR /&gt;
2.) Try automating AutoCAD from VBA (like in MS Excel) on the Target machine:&lt;BR /&gt;
     a.) open a new Excel Workbook&lt;BR /&gt;
     b.) ALT+F11 to open VBA&lt;BR /&gt;
     c.) Right Click on  VBA Project(Book ?) -&amp;gt; Insert -&amp;gt; Module&lt;BR /&gt;
     d.) Tools Menu -&amp;gt; References -&amp;gt; Select:&lt;BR /&gt;
                AutoCAD 2007 Type Library&lt;BR /&gt;
                AutoCAD/ObjectDBX Common 17.0 Type Library&lt;BR /&gt;
      e.) add this code to the new module you created in step c:&lt;BR /&gt;
Sub Test()&lt;BR /&gt;
  Dim acadapp as AutoCAD.AcadApplication&lt;BR /&gt;
  Set acadapp = CreateObject("AutoCAD.Application")&lt;BR /&gt;
  acadapp.Visible = True&lt;BR /&gt;
  MsgBox acadapp.Version&lt;BR /&gt;
  Set acadapp = Nothing&lt;BR /&gt;
End Sub&lt;BR /&gt;
     f.) click inside the code you just added and press F8 to step into the code to verify you can open AutoCAD&lt;BR /&gt;
     g.)press F5 and click OK on the message box to end the debugging session&lt;BR /&gt;
&lt;BR /&gt;
   Referencing the COM components in VBA often fixes incorrect or missing COM registration entries in the registry. After you complete the steps in this section, close AutoCAD and try your code to see if it works.&lt;BR /&gt;
&lt;BR /&gt;
3.) Look at the 'Copy Local' of the Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common references in Visual Studio on the development machine. Try changing them , recompile and redeploy.&lt;BR /&gt;
&lt;BR /&gt;
Last resort:&lt;BR /&gt;
4.) Click Start-&amp;gt;Run-&amp;gt;Type dcomcnfg&lt;BR /&gt;
     Open Console Root-&amp;gt;Component Services-&amp;gt;Computers-&amp;gt; My Computer-&amp;gt;DCOM Config&lt;BR /&gt;
     Find AutoCAD Application in list-&amp;gt;Right Click-&amp;gt;Properties&lt;BR /&gt;
     General Tab:&lt;BR /&gt;
        Authentication Level: Default&lt;BR /&gt;
     Location Tab:&lt;BR /&gt;
        Only 'Run Application on this Computer' Checked&lt;BR /&gt;
      Security Tab:&lt;BR /&gt;
         Launch and Activation Permissions: Use Default&lt;BR /&gt;
         Access Permissions: Use Default&lt;BR /&gt;
       Identity Tab:&lt;BR /&gt;
         The launching user option clicked.</description>
      <pubDate>Thu, 14 Sep 2006 21:16:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762071#M80428</guid>
      <dc:creator>cgay</dc:creator>
      <dc:date>2006-09-14T21:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762072#M80429</link>
      <description>Thank you.  That's great information.   I will try that as soonas I hear back from him on the:&lt;BR /&gt;
&lt;BR /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OLE\EnableDCOM</description>
      <pubDate>Thu, 14 Sep 2006 21:38:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762072#M80429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-14T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762073#M80430</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Were you able to resolve this issue? Apparently, one of our end users is running into similar problem and we aren't quite sure how to go about resolving this.&lt;BR /&gt;
&lt;BR /&gt;
Appreciate your response.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Chandra M.</description>
      <pubDate>Thu, 10 Jan 2008 18:05:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762073#M80430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-10T18:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762074#M80431</link>
      <description>yea we are having the same problem as well. We thought it was something to do with the fact that the end user isnt an admin on their computer but that only occasionally works. Any help would be appreciated</description>
      <pubDate>Thu, 03 Jun 2010 13:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/1762074#M80431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-03T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/2831557#M80432</link>
      <description>&lt;P&gt;Same error here too .. any update?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2010 17:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/2831557#M80432</guid>
      <dc:creator>StormyC</dc:creator>
      <dc:date>2010-11-19T17:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/3440383#M80433</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to launch AutoCAD with the following code in visual studio on an win 7 &amp;nbsp;machine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string progID = "AutoCAD.Application.18.1";&lt;BR /&gt;System.Type acType = System.Type.GetTypeFromProgID(progID);&lt;BR /&gt;Autodesk.AutoCAD.Interop.AcadApplication autoCADApp = null;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;autoCADApp = (Autodesk.AutoCAD.Interop.AcadApplication)System.Activator.CreateInstance(acType);&lt;/P&gt;&lt;P&gt;autoCADApp.Visible = true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show(ex.Message);&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This code works some time and sometimes gives above error, I get the following error: Creating an instance of ther COM Component with CLSID {big long hex number} from the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IClassFactory&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;failed&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;due to the following error: 80010001a ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 10:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/3440383#M80433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T10:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating instance of AcadApplication</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/6610696#M80434</link>
      <description>&lt;P&gt;any luck on resolving this... I am also facing the same scenario on one of the computers??&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 10:39:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-creating-instance-of-acadapplication/m-p/6610696#M80434</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2016-10-09T10:39:33Z</dc:date>
    </item>
  </channel>
</rss>

