c# - Error: An unhandled exception of type 'System.BadImageFormatException' occurred in System.Windows.Forms.dll -


new error popped when created new build configuration  x86target not setting x86i trying capture frames video stream , trying use aforge library purpose. when try call of api's of library project gives me above error.

my research shows due using 32 bit windows dll on x64 or vice-versa.but have not been able find out aforge library package 64 bit windows. using x64 windows7. links or suggestions can me resolve error appreciated.enter image description here

i thank every 1 contruibution..following steps solved issue...this link worked

created new solution added existing projects place appropriate config file near exe, , fill with:

<?xml version="1.0"?> <configuration>   <startup uselegacyv2runtimeactivationpolicy="true">     <supportedruntime version="v4.0" sku=".netframework,version=v4.0"/>   </startup> </configuration> 

might well..


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -