Hi. I am upgrading from 10.3 to 10.4. so I am resetting the references and re-compiling all of my applications in VS2012.
The first error I encountered was: Could not load file or assembly 'ESRI.ArcGIS.Desktop.AddIns, Version=10.4.0.0,
Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified.
I had no issues with 'ESRI.ArcGIS.Desktop.AddIns' in other applications I had upgraded so I thought this was odd. I searched on the internet and found the solution of going to Properties: Compile: and unchecking 'Register for COM interop'
No more errors, but I am not getting the esriAddIn file when I compile. Way back when I upgraded to 10.3 I had to go into the vbproj file and the set the ESRI.ArcGIS.AddIns.targets to ESRI.ArcGIS.AddIns.11.targets. Those are set.
In looking through the vbproj file the following are not set to 4.0, though the references are set to 10.4.0.0 and the application is set to the .NET Framework 4.5.
<SchemaVersion>2.0</SchemaVersion>
<OldToolsVersion>3.5</OldToolsVersion>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<Reference Include="ESRI.ArcGIS.ArcMapUI, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">
<Reference Include="ESRI.ArcGIS.Desktop.AddIns, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">
<Reference Include="ESRI.ArcGIS.Framework, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">
<Reference Include="ESRI.ArcGIS.System, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<ProductName>Windows Installer 3.1</ProductName>
Thank you for taking a look at this, Dale
Solved! Go to Solution.
According to this, VS2012 is not supported for ArcGIS 10.4. Just 2013 and 2015
Yeah, that could be a problem with VB2012. I do have VB2013 installed so I will upgrade them with it. It was just odd that the projects were compiling and everything looked good until this one application.
I will be back when I start compiling them in VS2013 and let you know what happens.
I am starting to compile my addin's in VS 2013 and the esriAddin's are not being created. References are set to 10.4.0.0 and the application is set to the .NET Framework 4.5.
No errors.