22-09-15, 01:21 PM
عند ربط مشروعك مع السكنر لسحب الصور وفي حالة مشروعك يستخدم net framework4. تظهر رسىالة خطاء
Mixed mode assembly is built against version 'v2.0.50727' of the runtime
and cannot be loaded in the 4.0 runtime without additional configuration information
لحل المشكلة نضيف الأسطر التالية في ملف app.config
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
<supportedRuntime version="v4.0"/>
</startup>
</configuration>