Select to view content in your preferred language

XML 'library' error

3178
3
01-29-2015 01:21 PM
BBulla
by
Regular Contributor

Hi,

I'm migrating a bunch of 9.3 tools to 10.2 AddIns.  Is there a restriction on the length of the .dll that the AddIn creates?  I'm getting a few errors on building a project, and the AddIn is not registering with ArcMap.

The error is: 

Warning1Custom tool warning: The 'library' attribute in the AddIn element may be invalid - The value  'Facility_ID_Tool__AddIn.dll' is invalid according to the project output assembly name 'Facility_ID_Tool _AddIn.dll'.C:\Visual Studio Projects\Facility_ID_Tool _AddIn\Facility_ID_Tool _AddIn\Config.esriaddinx1325Facility_ID_Tool _AddIn

Here is the XML:

<AddIn language="CLR" library="Facility_ID_Tool__AddIn.dll" namespace="Facility_ID_Tool__AddIn">

This was all setup using the Wizard in VS2012.

Thanks.

0 Kudos
3 Replies
BBulla
by
Regular Contributor

By length I mean the length of the filename.

0 Kudos
GregMcQuat
Occasional Contributor

Let's try to solve this one for you since we're not having any luck on the COM Exception!

Facility_ID_Tool__AddIn.dll

vs.

Facility_ID_Tool _AddIn.dll

There are 2 underscores before AddIn in the first and one in the second.

0 Kudos
BBulla
by
Regular Contributor

Thanks Greg.  Yeah, I'm not sure what happened here.  Basically I just re-built the add-in from scratch and had no problems.  Not sure if it was a problem with length of name or what, but eventually I got it working.

0 Kudos