AnsweredAssumed Answered

Runtime error - Could not load file or assembly v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.System.dll

Question asked by amita5 on Oct 4, 2019

An ArcObject code for custom toolbar in ArcGIS Desktop has been migrated from 10.1 to 10.5.1

All the conflicts are resolved, but getting following error while building the solution - 



Severity Code Description Project File Line Suppression State
Error System.BadImageFormatException - Could not load file or assembly 'file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/ESRI.ArcGIS.System/v4.0_10.5.0.0__8fc3cc631e44ad86/ESRI.ArcGIS.System.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. AnalystUI C:\PUMA_AnalytikerCode\Analyst\AnalystUI\TlbImp



The solution has several VB Projects (class libraries), which are interlinked. The final start-up project has reference of all these projects (dlls) .

Each one of them is building without any error. But the final one is not

I tried searching help for ArcObjects 10.5 Developers but no joy.


Can someone help!!!