Build Failed - Failed to register Add-in

10268
13
09-07-2010 04:06 PM
MikeLouwrens
Occasional Contributor III
I have been going through the Add-in walkthrough and when I try to Build I get an error "Failed to register Add-in 'CustomUIElements.esriAddIn'"

This is the Build Output:

------ Build started: Project: CustomUIElements, Configuration: Release Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.ArcMapUI.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.Carto.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.Desktop.AddIns.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.Display.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.Framework.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.Geometry.dll /reference:C:\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.System.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\CustomUIElements.dll /target:library Properties\AssemblyInfo.cs ZoomToLayerButton.cs AddGraphicsTool.cs Config.Designer.cs
Compile complete -- 0 errors, 0 warnings
CustomUIElements -> C:\VisualStudio\Projects\CustomUIElements\CustomUIElements\bin\Release\CustomUIElements.dll
Successfully created Add-in "CustomUIElements" -> 'C:\VisualStudio\Projects\CustomUIElements\CustomUIElements\bin\Release\CustomUIElements.esriAddIn'.
esriRegAddin.exe "C:\VisualStudio\Projects\CustomUIElements\CustomUIElements\bin\Release\CustomUIElements.esriAddIn" /s
C:\Program Files\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets(125,5): error : Failed to register Add-in 'CustomUIElements.esriAddIn'.
Done building project "CustomUIElements.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========


Software:
Visual Studio 2008
ArcGIS 10
XP Pro 32bit

I didn't use the sample data, just followed the walkthrough and ran Build when it told me to ("Installing the custom button and tool" section)

Any ideas on what's happening?

Cheers,
Mike.
0 Kudos
13 Replies
RobynGingerich
New Contributor II
Hi All,

I experienced the same issue when trying to install the AttributeAssistant and WaterUtility Network Editing Tools in my Desktop version 10.2.  I received a pop-up with the following message:  Installation failed. Access is denied. The specified add-in file may be in use.
I was able to resolve this problem by putting the add-in installer files in the following directory:  C:\Program Files (x86)\ArcGIS\Desktop10.2\bin\Addins.  You can actually put the installer files in any directory and then add it through the the options dialog of the Customize -> Add-in Manager in ArcMap.


Well that worked for me anyway.  I hope it works for you too.

Regards,
gingerrc4
deleted-user-amp86F9KgPL3
New Contributor III

YES YES AND YES!!! Thank You!!! robyn@edcgov

0 Kudos
Town_of_Fuquay-VarinaIT_Depart
New Contributor II

I recently had this issue where we were suddenly unable to use an add-in that we have had on a network folder for years with no problems. We made certain changes to the way we map our user's desktops/profiles, involving Sharepoint directories.

Copying the add-in file to the Add-In folder on each users machine works for us! However, it only appears in ArcMap and not in Catalog for some reason. Windows 7, ArcGIS Desktop 10.5

0 Kudos
FabianHeredia
New Contributor II
the problem is:

you look "Config.esriaddinx" in line
<Targets>
    <Target name="Desktop" version="10.0" />
  </Targets>

the Solution

change the version API
0 Kudos