ArcObject 10.5.1 assembly failed to register in ArcMap 10.6

1309
1
03-09-2018 07:58 AM
SunilTerkar
New Contributor II

My user is trying to register custom  toolbar assembly developed in 10.5.1 on ArcMap 10.6 using ESRIRegASM but uable to do so, as it is giving error message, "Registration failed. Could not load the file or assembly myfilename.dll or one of its dependencies. Operation is not supported. (Excpetion from HRESULT: 0X80131515)"

My assumption is that it is possible to register lower version assembly in higher version of ArcMap. 

Can anybody help with this or any solution.

Regards

Sunil Terkar

Tags (1)
0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

The problem will be with ESRIRegASM.exe.config file. It is located in the same folder as ESRIRegASM.exe. Open it and check binding redirection part of ArcGIS libraries. It must be like this:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="ESRI.ArcGIS.ADF.Local" culture="" publicKeyToken="8fc3cc631e44ad86"/>

<bindingRedirect oldVersion="9.3.0.0-10.5.1.0" newVersion="10.6.0.0"/>

</dependentAssembly>

</assemblyBinding>