Sumit Kumawat

Sumit Kumawat

  • NA
  • 454
  • 406.4k

Mixed mode assembly is built against version v2.0.5072?

Apr 24 2013 2:37 AM
Hi All,

i am working on one app in which i am using SQLite connectivity for my database.while connecting to my database it is giving me below error :-

"Message = "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."

I searched on web and found below two different solutions which i have added in my code :

1. Added in my app.config file :

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

2. Modified project property:

"generate serialization assembly = Off"

but after doing this still i am facing same issue. Please help me out..

Thanks