Hi,
I am a complete newbie to ArcGIS SDK and I have encountered the following error when compiling and running a .NET Sample:
System.BadImageFormatException was unhandled
Message="Could not load file or assembly 'ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Source="RasterSyncExtensionReg"
FileName="ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = CSE\\tomw\r\nLOG: DisplayName = ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/Samples/ArcObjectsNet/RasterSyncWorkspaceExtension/CSharp/RasterSyncExtensionReg/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : RasterSyncExtensionReg, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: ESRI.ArcGIS.System, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86\r\nLOG: Attempting download of new URL file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/Samples/ArcObjectsNet/RasterSyncWorkspaceExtension/CSharp/RasterSyncExtensionReg/bin/Debug/ESRI.ArcGIS.System.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n"
StackTrace:
at RasterSyncExtensionReg.RegisterExtension.Main(String[] args)
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
-------------------------------
The paths to the referenced ArcObjects are correct...
Any help would be much appreciated.
Cheers,
Tom