Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Snow lizard 36 posts 106 karma points
    Oct 25, 2016 @ 07:58
    Snow lizard
    0

    Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0

    Hi,

    I have a project using Umbraco version 7.4.3 assembly: 1.0.5948.18141 which works fine locally running through webmatrix. I have then moved it to my server and setup IIS as well as permissions on my folder matching other Umbraco projects which work. When I try to open the site I get the following error.

    Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Does anyone know how i'd fix this?

    Thanks

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Oct 25, 2016 @ 13:59
    Sebastiaan Janssen
    1

    Try adding the following to your web.config:

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845dcd8080cc91" />
                <bindingRedirect oldVersion="4.0.0.0" newVersion="4.0.0.1" />
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
    
  • Snow lizard 36 posts 106 karma points
    Oct 25, 2016 @ 15:58
    Snow lizard
    0

    Thanks Sebastiaan,

    Ok i added that in and I now get

    Umbraco cannot start. A connection string is configured but the Umbraco cannot connect to the database.

    Im using the Umbraco local .sdf database which works locally.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft