<?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: Visual Studio / Windows 7 issue:  cannot register assembly in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625600#M16866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disable the COM resgister option in the project properties tab, also&amp;nbsp; check that you are running in x86 cofiguration..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 15:28:52 GMT</pubDate>
    <dc:creator>Cristian_Galindo</dc:creator>
    <dc:date>2012-10-01T15:28:52Z</dc:date>
    <item>
      <title>Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625594#M16860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My work machine was just upgraded to Windows 7, this caused a lot of problems with my Visual Studio 2008.&amp;nbsp; (all issues described here are presenting themselves in VS 2010 as well).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue when building projects is the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Error 1 Cannot register assembly "C:\Users\sbwolf\Desktop\CVS Repository\arcgis - Copy\ExportToImage\EMF Export\bin\Release\ExportToImage.dll" - access denied. 
Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\ExportToImage.ExportToImage' is denied. ExportToImage
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run Visual Studio as administrator and then run (Debug -&amp;gt; Run ) the project in ArcMap, my ArcMap gets into this odd state where only a few Feature Classes load.&amp;nbsp; If I try to fix the ones that did not, no feature classes or datasets display in the SDE connection.&amp;nbsp; Not running Visual Studio in administrator fixes this issue with ArcMap, but the COM assembly is not registered and doesn't show up in ArcMap.&amp;nbsp; FYI, the code being run is an ESRI ICommand derivative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if due to Visual Studio running as administrator, ArcMap isn't in some odd execution context because it's not running the same permission level or the possibly same level as that of its supporting executables ( AppRot, etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 11:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625594#M16860</guid>
      <dc:creator>ShaneWolf</dc:creator>
      <dc:date>2010-10-25T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625595#M16861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did you ever resolve this ? if you did could you share how ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625595#M16861</guid>
      <dc:creator>arunchanumalla</dc:creator>
      <dc:date>2011-01-11T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625596#M16862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Turn UAC off.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625596#M16862</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-11T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625597#M16863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting problem. I have never run into it, but then I'm relatively new to Visual Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would try to avoid turning off UAC, if possible. And always running VS as admin shouldn't be necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;StackOverflow has a similar thread, and one of the answers seems like something to try as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"I believe you can turn off the auto-registration for COM components in the project settings. Register the component manually once, and let the IDE just compile the binary without registering it. You will need to re-register the component if you change the interface, obviously.. But it doesn't have to be done every single compile/debug."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avoiding COM registration headaches is one of the nice features of Add-Ins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 18:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625597#M16863</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2011-01-11T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625598#M16864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had the same problem. I had to run Visual Studio as an administrator to get the build solution to show no errors&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 00:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625598#M16864</guid>
      <dc:creator>ThomasGertin</dc:creator>
      <dc:date>2011-07-21T00:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625599#M16865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm creating a VS2010 (C#) AddIn, and receiving the error "Cannot register assembly "---.dll.&amp;nbsp; Could not load file or assembly '----' or one of its dependencies.&amp;nbsp; The system cannot find the file specified."&amp;nbsp; Well, the dll is there, so I have no idea what this is referring to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to try to turn off auto-registration for COM components in the project settings, as suggested in the previous post.&amp;nbsp; However, again, there are no details on how to do this.&amp;nbsp; I realize that the project properties has a Settings property, but I can't find any documentation on how to use it.&amp;nbsp; Is that where I can set the auto-registration to false?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 13:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625599#M16865</guid>
      <dc:creator>CharlesShore</dc:creator>
      <dc:date>2012-09-27T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625600#M16866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disable the COM resgister option in the project properties tab, also&amp;nbsp; check that you are running in x86 cofiguration..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 15:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625600#M16866</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2012-10-01T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio / Windows 7 issue:  cannot register assembly</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625601#M16867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the discussion of per-user redirection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/024awkd1.aspx"&gt;http://msdn.microsoft.com/en-us/library/024awkd1.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am thinking that you are probably running as a user who is a member of the Administrators group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have run into a number of problems which end up requiring the Visual Studio be run as an Administrator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMHO, the easiest way to do that is to simply disable UAC.&amp;nbsp; I am talking about a development machine here and not an end user machine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 00:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-windows-7-issue-nbsp-cannot-register/m-p/625601#M16867</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-02T00:12:27Z</dc:date>
    </item>
  </channel>
</rss>

