none
[A]System.Data.SQLite.SQLiteConnection cannot be cast to [B]System.Data.SQLite.SQLiteConnection. RRS feed

  • Question

  • Hi,

    I have created an "edmx" file from an empty ".sqlite" file.

    I am getting below error while fetching data.

    [A]System.Data.SQLite.SQLiteConnection cannot be cast to [B]System.Data.SQLite.SQLiteConnection. Type A originates from 'System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' in the context 'Default' at location 'C:\Windows\assembly\GAC_32\System.Data.SQLite\1.0.66.0__db937bc2d44ff139\System.Data.SQLite.dll'. Type B originates from 'System.Data.SQLite, Version=1.0.105.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.SQLite\v4.0_1.0.105.0__db937bc2d44ff139\System.Data.SQLite.dll'.

    My PC environment is: Win-7 OS, VS 2013, .Net Framework 4.6.1, Entity Framework 6.1.3 Tool

    Need help to fix this run time issue and please let us know what is [A] and [B]???

    Regards,

    Hari
    Tuesday, April 11, 2017 12:08 PM

All replies