Problem dependecies with refrence SqlServerCe.dll

Discussion in 'microsoft.public.sqlserver.ce' started by Philippe, Feb 27, 2009.

  1. Philippe

    Philippe Guest

    I have VB 2008 (not SP1)

    I have a problem of dependencies with SqlServerCE.dll.
    All dependencies of all my references are on 3.5.0.0, except
    System.Data.SqlServerCe.dll, whose dependencies are Mscorlib 2.0.0.0,
    System 2.0.0.0, and System.Data 2.0.0.0.
    Not only in ancient program, but on new program too.

    I create a program like this :
    New Project. I choose "Smar device project", then "Smart device application"
    with "Windows Mobile Professional SDK" and ".net Compact Framework Version
    3.5".
    VS 2008 create a form1.
    I add a refrence to "system.data.sqlserverCe".
    I save project and I add a new Project to the solution (Project CAB smart
    device).
    In this new project, VS2008 add refrences after adding to Application
    directory the principal output of my project. If I look at alll the
    dependenciesof the references automatically added by "project CAB smart
    device" I see :
    - microsoft.visualbasic.dll
    - microsoft.WindowsCE.forms.dll
    - mrcorlib.dll
    - System.code.dll
    - System.data.datasetextensions.dll
    - System.data.dll
    - System.data.SqlServerCE.dll
    - System.dll
    - System.drawing.dll
    - System.windows.forms.dll
    - System.wml.dll
    - System.Xml.linq.dll
    All dependencies of all refrences are 3.5.0.0, except
    System.data.SqlServerCE.dll, whose referencies are 2.0.0.0.

    So I have error. I can launch my program, but I can not generate it, because
    "MSB3247 : Des conflits entre différentes versions du même assembly
    dépendant ont été rencontrés. SmartDeviceProject2" (conflicts betweeen
    different versions of same dependent assembly)

    How can I repair these errors met after a reinstallation of VS2008 ?

    When I try to create a new Compact server database .sdf, I cannot do that,
    because I have not the choice of create a .sdf file, but only a .mdf file.

    In "Add/remeve programs" I have these installations :
    - Microsoft .NET Compact framework 2.0 SP2
    - Microsoft .NET Compact Framework 3.5
    - Microsoft .NET Framework 2.0 Service Pack 2
    - Microsoft .NET Framework 2.0 Service Pack 2 Language pack - Fra
    - Microsoft .NET Framework 3.0 Service Pack 2
    - Microsoft .NET Framework 3.0 Service Pack 2 Language pack - Fra
    - Microsoft .NET Framework 3.5 SP1
    - Microsoft SQL Server 2005
    - Microsoft SQL Server 2005 Compact 3.5 for devices FRA
    - Microsoft SQL Server 2005 Compact 3.5 FRA


    Thanks very much for your help, and excuses for my english language !.
     
    Philippe, Feb 27, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.