Failed to load Microsoft.SqlServer.Types files

When I'm first-chance exceptionsturned on VS2010, I get the following message on the first call EntityFramework's SaveChanges(). This is a WinFormsdatabase application MSSQL CE 4.

BindingFailure The assembly with the display name "Microsoft.SqlServer.Types" could not load the "Download" binding context in AppDomain with identifier 1. The reason for the failure was: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Types, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91 'or one of its dependencies. The installed assembly manifest definition does not match the assembly reference.

After continuing, this message is also displayed:

FileLoadException Could not load file or assembly 'Microsoft.SqlServer.Types, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91' or one of its dependencies. The installed assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x8013104040 )

I included Microsoft.SqlServer.Types.dllin the project.

I know this is an exception from the first chance, and this does not seem to affect the application beyond the notification when debugging, but I would still like to fix it. (It overhears me in the back of my mind.)

First, what is this error message trying to tell me?

Secondly, how do I fix it?

+4
source share
2 answers

, EF , SqlTypes AppDomain, , SqlServer. - , . BindToLatest(), , , . , , , " " (Debug → , Runtime, "" )

+3

. , .

, .

0

All Articles