Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4343514
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:45:51+00:00 2026-05-21T11:45:51+00:00

I have an application that utilizes SQL CE 3.5 and the Entity Framework from

  • 0

I have an application that utilizes SQL CE 3.5 and the Entity Framework from .NET 3.5.

We encountered a known issue with SQL CE 3.5 SP2 RTM that causes application crashes. As a result, we obtained Cummulative Update 2 which apparently addresses the issue.

Since we deployed SQL CE via XCopy with our application, we assumed that simply replacing the local managed and unmanaged DLLs with the CU2 versions would do the trick.

In the case where SQL CE has been installed on the machine ahead of time (and is therefore in the GAC), our application ignores the newer versions of the assemblies and DLLs and loads the old, broken versions from the GAC.

We determined that that uninstalling SQL CE (and therefore removing it from the GAC) or updating the GAC’s assemblies allows our application to use the correct version.

Is there a better way? I’ve tried Assembly.LoadFile, but that didn’t seem to work. (Both versions were loaded, but the older one was the one that was actually in use.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:45:52+00:00Added an answer on May 21, 2026 at 11:45 am

    Are you targeting a specific version of the SQL CE assemblies? In the properties tab check that the Specific Version property of the reference is set to True. Also check that you don’t have an assembly binding redirect that directs the .Net framework to use the older assemblies.

    I can only assume that the Cummulative Update 2 incremented the version number, and if this is the case the assemblies in the GAC should only be used if the assembly version matches exactly. If they don’t match then the .Net framework should use the assemblies found in your application directory, as they do match the version number exactly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Entity Framework in a web application that utilizes SQL server
I have an ASP.NET MVC application that utilizes NHiberante and SQL Server 2008 on
Here's my situation (SQL Server): I have a web application that utilizes nHibernate for
I have a Windows application that utilizes a 3rd-party tool ( FaxMan ) to
I have an application that I'm developing in Visual Studio 2010 that utilizes a
I have an application that utilizes rather unfriendly dynamic URLs most of the time.
I have an application that sends messages to an external web service. I build
I have an application that displays an image inside of a Windows Forms PictureBox
I have an application that reads a CSV file with piles of data rows.
I have an application that uses NHibernate as its ORM and sometimes it experiences

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.