<?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 Issue With SystemUI.dll - System.Runtime.InteropServices.COMException in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/issue-with-systemui-dll-system-runtime/m-p/1177201#M6270</link>
    <description>&lt;P&gt;I'm trying to run an existing .NET app and getting to a part where it's instantiating an "MxDocumentClass" which I believe resides in the ArcGIS.ArcMapUI dll, it loads in that ArcMapUI.dll file, then several others afterwards:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loaded '...\ESRI.ArcGIS.Framework.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.CatalogUI.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.Output.dll'.&lt;BR /&gt;Loaded '...\stdole.dll'.&lt;BR /&gt;Loaded '...\Microsoft.VisualStudio.Interop.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.ADF.Local.dll'.&lt;/P&gt;&lt;P&gt;but then hits:&lt;BR /&gt;Loaded ...\ESRI.ArcGIS.SystemUI.dll'.&lt;/P&gt;&lt;P&gt;And I receive:&amp;nbsp;Exception thrown: 'System.Runtime.InteropServices.COMException' in APP.exe&lt;BR /&gt;Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).&lt;/P&gt;&lt;P&gt;I've tried manually registering the DLL is several ways:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Double clicking and registering via the ESRI Arc Registration Tool. This gives me a successful message but is still not registered.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Using regsvr32 through an elevated (administrator) Command Prompt AND Powershell&lt;/LI&gt;&lt;LI&gt;Running sfc /scannow in an elevated command prompt.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;None of which have worked. I am running in x86 Build configuration, so I know that's not the issue either. Does anyone have any ideas?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 14:48:12 GMT</pubDate>
    <dc:creator>CalebDruckemiller</dc:creator>
    <dc:date>2022-05-25T14:48:12Z</dc:date>
    <item>
      <title>Issue With SystemUI.dll - System.Runtime.InteropServices.COMException</title>
      <link>https://community.esri.com/t5/developers-questions/issue-with-systemui-dll-system-runtime/m-p/1177201#M6270</link>
      <description>&lt;P&gt;I'm trying to run an existing .NET app and getting to a part where it's instantiating an "MxDocumentClass" which I believe resides in the ArcGIS.ArcMapUI dll, it loads in that ArcMapUI.dll file, then several others afterwards:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loaded '...\ESRI.ArcGIS.Framework.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.CatalogUI.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.Output.dll'.&lt;BR /&gt;Loaded '...\stdole.dll'.&lt;BR /&gt;Loaded '...\Microsoft.VisualStudio.Interop.dll'.&lt;BR /&gt;Loaded '...\ESRI.ArcGIS.ADF.Local.dll'.&lt;/P&gt;&lt;P&gt;but then hits:&lt;BR /&gt;Loaded ...\ESRI.ArcGIS.SystemUI.dll'.&lt;/P&gt;&lt;P&gt;And I receive:&amp;nbsp;Exception thrown: 'System.Runtime.InteropServices.COMException' in APP.exe&lt;BR /&gt;Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).&lt;/P&gt;&lt;P&gt;I've tried manually registering the DLL is several ways:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Double clicking and registering via the ESRI Arc Registration Tool. This gives me a successful message but is still not registered.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Using regsvr32 through an elevated (administrator) Command Prompt AND Powershell&lt;/LI&gt;&lt;LI&gt;Running sfc /scannow in an elevated command prompt.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;None of which have worked. I am running in x86 Build configuration, so I know that's not the issue either. Does anyone have any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/issue-with-systemui-dll-system-runtime/m-p/1177201#M6270</guid>
      <dc:creator>CalebDruckemiller</dc:creator>
      <dc:date>2022-05-25T14:48:12Z</dc:date>
    </item>
  </channel>
</rss>

