Yes, I tried it but the result still the same.
I am using VideoViewer.csproj to test it.
The following is the step for the testing,
1)Install “MIP SDK 2017 R2”[http://download.milestonesys.com/MIPSDK/MIPSDK_Installer_2017R2.msi]
and
“MIP SDK 2017 R2 - Redistributable Installer x86”[http://download.milestonesys.com/MIPSDK/MIPSDK_Redist_Installer_x86_2017R2.msi].
2)Compile the VideoViewer[“[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\VideoViewer”] with platform target “Any CPU”.
If compile with platform target “x86”,It will throw the badimageformatexceptionexception.
“Could not load file or assembly ‘VideoOS.Platform.SDK.UI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’ or one of its dependencies. An attempt was made to load a program with an incorrect format.”
3)Call “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\Bin\CopyImageViewerActiveX.bat” to “[C:\Program](file:C:/Program) Files\Milestone\New folder (2)\MIPSDK\ComponentSamples\VideoViewer\bin\Debug”.
4)Run the application, It is able to retrieve the live image from camera.
5)Remove reference “VideoOS.Platform”,“VideoOS.Platform.SDK” and “VideoOS.Platform.SDK.UI”.
6)Add reference “VideoOS.Platform”,“VideoOS.Platform.SDK” and “VideoOS.Platform.SDK.UI” from “[C:\Program](file:C:/Program) Files (x86)\Milestone\MIPSDK\Bin”.
7)Set platfotm target to “x86”.
8)Call “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\Bin\CopyImageViewerActiveX.bat” to “[C:\Program](file:C:/Program) Files\Milestone\New folder (2)\MIPSDK\ComponentSamples\VideoViewer\bin\Debug”.
9)Run the application, select the camera and it will throw badimageformat exception at “_imageViewerControl1.Connect();”
"Could not load file or assembly ‘VideoOS.Toolkit.dll’ or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Please advice.