Compact view не удалось загрузить файл или сборку sqlserverce
In my project, I use SQL CE 3.5 database with entity framework and followed this article but i have this exception :
Дополнительные сведения
Если удастся устранить проблемы подключения к CRM Online организации CRM для Outlook, средство диагностики для диагностики проблемы:
On 64-bit computers, a SQL Server Compact (“Compact”) based application may fail with one of the following two symptoms:
Symptom 1
The application is trying to load a version of Compact that is incompatible with the version that is installed on the computer. Incorrect versions could lead to application instability and the loading of Compact would be aborted.
The following are the exact exceptions that are associated with these issues:
Unable to load ME dll Exception”
Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Example Scenario 2
You install the x86 version of SQL Server Compact 3.5 SP1 on a 64-bit computer.
Then, you install the x64 version of SQL Server Compact 3.5 SP1.
On the same computer, you download and install the 32-bit version of SQL Server Compact 3.5 SP2 from the Web.
You run a 64-bit application that uses SQL Server Compact SP1 or SP2.
When you run the application, it fails with the “Unable to load ME dll " exception.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Если нажать кнопку Подробнее, отображается следующая дополнительная информация:
Не удалось загрузить файл или сборку ' System.Data.SqlServerCe, версия = 4.0.0.0, язык и региональные параметры нейтрального PublicKeyToken = = 89845dcd8080cc91 "или одна из ее зависимостей. Системе не удается найти указанный файл. в Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.CreateDatabase (логическое принудительно)
в Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.Initialize()
в Microsoft.Crm.Application.SMWrappers.CrmSqlCeDatabase.get_ConnectionString()
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientMetadataSync.GetDataWriteFactoryInstance()
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientMetadataSync.CreateDataWriter[TReturn] (действие Func'2)
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientMetadataSync.get_IsValid()
Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientDynamicMetadataCache. <> c__DisplayClass1d b__1a() < .ctor >
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.DeferredMetadataCacheManager.ExecuteWaitUntilReady (Guid organizationId, действие действие)
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientDynamicMetadataCache. ctor (IOrganizationContext контексте, логическое reloadAsynchronously)
в Microsoft.Crm.Application.Outlook.ClientMetadataCache.ClientDynamicMetadataCache.LoadCache (IOrganizationContext контексте, логическое unusedHere)
в Microsoft.Crm.Metadata.MetadataCache.GetInstance (IOrganizationContext контекст)
в Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.InitializeMapiStoreForFirstTime()
в Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.Configure (IProgressEventHandler progressEventHandler
в Microsoft.Crm.Application.Outlook.Config.ConfigEngine.Configure (объект stateInfo)
Resolution
At any given point of time, the correct state of a 64-bit computer, for SQL Server Compact, would be the following:
Both x86 and amd64 MSIs are installed.
Both x86 and amd64 MSIs are of the same version.
Therefore, if you face any similar issues, make sure that the computer has both x86 and amd64 MSIs of Compact are installed and they are of the same version. In case, they are not, then install Compact SP2 x86 and x64 MSIs from following link as needed:
Resolution
At any given point of time, the correct state of a 64-bit computer, for SQL Server Compact, would be the following:
Both x86 and amd64 MSIs are installed.
Both x86 and amd64 MSIs are of the same version.
Therefore, if you face any similar issues, make sure that the computer has both x86 and amd64 MSIs of Compact are installed and they are of the same version. In case, they are not, then install Compact SP2 x86 and x64 MSIs from following link as needed:
Reason for the failure
There is a version mismatch which is not enabled as per the policy.
4 Answers 4
I got this error with a private install of SqlServerCE. I had a reference to System.Data.SqlServerCe.dll in my project, but I was missing other dlls (native components) needed by SqlServerCE. The "native components" are in x86 and amd64 subfolders of SqlServerCE's "private" folder. You need to make sure that they get copied to the output folder of your project.
Just to spell it out for those like me that this is not a natural playground for. The amd64 and x86 folders from C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Private need to be copied into the \bin or \Bin folder of your website's directory.
I also had encountered the same problem. the problem was i had used the following command install-package EFcodeFirst.SqlServerCompact to get the sqlCE. the version that was downloaded by package manager was 4.0 and whereas on my harddisk the version present was 3.5
You will need to copy the following file and entire directory to the location where your .exe is running on your server. This file and folder are most likely in the directory C:\Program Files(x86)\Microsoft SQL Server Compact Edition\V4.0\Private
System.Data.SqlServerCe.dll The entire amd64 folder I’m not sure what is used from the amd64 folder, but as soon as I copied this over my application started to work. You could also get your System.Data.SqlServerCe.dll file by clicking on it in Visual Studio under the References folder and then in the properties tab setting “Copy Local” to True and then when you build your app that file will be in your release folder.
I had a similar problem. I was opening a compact framework sql database and it gave me the following error:
When looking up the article, it led me to the following Link. The following quote explains what went wrong:
In the end I solved it by downloading and installing the service pack in the following link.
On 64-bit computers, a SQL Server Compact (“Compact”) based application may fail with one of the following two symptoms:
Symptom 1
The application is trying to load a version of Compact that is incompatible with the version that is installed on the computer. Incorrect versions could lead to application instability and the loading of Compact would be aborted.
The following are the exact exceptions that are associated with these issues:
Unable to load ME dll Exception”
Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Example Scenario 1
Install SQL Server 2008 R2 (this installs the 32-bit version of SQL Server Compact 3.5 SP2).Then, when you run a 64-bit application privately deploying SQL Server Compact SP1, It fails with the “Version Mismatch" exception.
Причина
Microsoft SQL Server Compact 4.0 с пакетом обновления 1 не установлен.
Решение
Установка Microsoft SQL Server Compact 4.0 с пакетом обновления 1 со следующего URL:
Example Scenario 2
You install the x86 version of SQL Server Compact 3.5 SP1 on a 64-bit computer.
Then, you install the x64 version of SQL Server Compact 3.5 SP1.
On the same computer, you download and install the 32-bit version of SQL Server Compact 3.5 SP2 from the Web.
You run a 64-bit application that uses SQL Server Compact SP1 or SP2.
When you run the application, it fails with the “Unable to load ME dll " exception.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Я установил MS SQL Server 2008 R2, и когда я пытаюсь обновить модель из базы данных в файле EDMX, я сталкиваюсь с этой ошибкой.
не удалось загрузить файл или сборку Microsoft.От SQLServer.управление.пакет SDK.sfc версия 11.0.0.0
Я попытался установить общие объекты управления Microsoft SQL Server 2008 R2 отсюда но нет радости.
: (Sql server 2014) эта проблема возникает при сборке Microsoft.SqlServer.management.sdk.sfc version 12.0.0.0 не найден visual studio.
- ENU\x64\SharedManagementObjects.msi для X64 OS или
- ENU\x86\SharedManagementObjects.msi для ОС X86,
затем установите его и перезапустите visual studio.
PS: вам может потребоваться установить DB2OLEDBV5_x64.msi или DB2OLEDBV5_x86.msi тоже.
: (Sql server 2012) эта проблема возникает при сборке Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 не найден visual studio.
- ENU\x64\SharedManagementObjects.msi для X64 OS или
- ENU\x86\SharedManagementObjects.msi для ОС X86,
затем установите его и перезапустите Visual студия.
: (Sql server 2008) эта проблема возникает при сборке Microsoft.SqlServer.management.sdk.sfc version 10.0.0.0 не найден visual studio.
- 1033\x64\SharedManagementObjects.msi для X64 OS или
- 1033\x86\SharedManagementObjects.msi для ОС X86,
затем установите его и перезапустите visual studio.
: недавно я получил аналогичную проблему после установки SharedManagementObjects. собрание Microsoft.SqlServer.ConnectionInfo, Version=12.0.0.0 не найден visual studio. Проблема была распространяемые пакеты Visual C++ для Visual Studio еще не был установлен.
- vcredist_x64.exe для X64 OS или
- vcredist_x86.exe для ОС X86,
затем установите его и перезапустите visual studio.
PS: вы можете найти распространяемые пакеты Visual C++ для Visual Studio 20XX для других версий Visual Studio и легко загуглить.
просто хочу поделиться своим опытом в этом.
Я тоже столкнулся с этой ошибкой. Я использую MS Visual Studio 2013, и у меня есть MS SQL Server 2008, хотя у меня был установлен MS SQL Server 2012 раньше.
я стучал головой об этой ошибке в течение дня. Я попытался установить SharedManagementObject, SQLSysClrTypes и собственный клиент, но это не сработало. Почему? Ну, я, наконец, понял, что я устанавливаю версию 2008 или 2012 указанных файлов, в то время как я использую Visual Студия 2013!! Моя идея заключается в том, что это проблема с базой данных, версия файлов должна быть одинаковой С MS SQL Server, установленным на ноутбуке, но, по-видимому, я должен был установить версию 2013, потому что ошибка из Visual Studio, а не из SQL Server.
Я использую Visual Studio 2013 и SQL Server 2014. Я получил следующую ошибку Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 не найден visual studio.
Я действительно ожидал Microsoft.SqlServer.management.sdk.sfc version 12.0.0.0 ошибка, потому что я использую SQL Server 2014.
чтобы устранить проблему, мне пришлось установить SQL Server 2012 SharedManagementObject.msi из приведенного ниже сайта.
Я запускаю VS 2012 и SQL Server 2008 R2 SP2, выпуск разработчика. В итоге мне пришлось устанавливать элементы из пакета компонентов Microsoft® SQL Server® 2012. Я думаю, что инструкции по установке отметил, что эти элементы работают для SQL Server 2005 до 2012. Я не знаю, каковы точные требования для исправления этой ошибки, но я установил три элемента, и ошибка перестала появляться.
пакет компонентов Microsoft® SQL Server® 2012 Предметы
- общие объекты управления Microsoft® SQL Server® 2012:x86 , х64
- типы среды CLR системы Microsoft® для Microsoft® SQL Server® 2012: x86 , х64
- собственный клиент Microsoft® SQL Server® 2012: x86 , х64
основываясь на потоках в другом месте, вам может не понадобиться последний элемент или два. Удачи!
для SQL Server 2014:
Выберите SharedManagementObjects.msi для вашего architectur
для тех, кто сталкивается с небольшим изменением этой проблемы, я только что нашел решение.
пререквизиты: использование VS 2015 и SQL Server 2012.
симптом: не удается загрузить эту подсистему: Microsoft.От SQLServer.управление.пакет SDK.sfc версии 12.0.0.0
на данный момент Вы можете быть похожи на меня и смущены тем, что используете SQL Server 2012, но VS 2015 пытается использовать версию 12.0.0.0, которая происходит от SQL Server 2014. Оказывается, что при установке SQL Server 2012, он устанавливает несколько компонентов из SQL Server 2014. В какой-то момент я удалил все следы SQL Server с моей машины (с помощью Панели Управления "Добавить программы"). Когда я переустановил SQL Server 2012, он либо не переустановил компоненты 2014, либо я удалил их снова, думая, что пропустил их в первый раз.
в результате у меня не было необходимых библиотек 2014 в моей системе. Я также попытался установить 2014 общих объектов управления, как указано выше, но это не сработало, потому что у меня не было среды CLR с 2014 года. Таким образом, чтобы система VS 2015 работала с SQL Server 2012, Вы должны убедиться, что эти два пакета 2014 установлены:
- ENU\x64\SQLSysClrTypes.компания MSI
- ENU\x64\SharedManagementObjects.компания MSI
с пакет компонентов SQL Server 2014. Выберите 32-разрядные версии, если вам нужно.
вот сайт это помогло мне понять это.
просто используйте MS Web platform Installer 4.5 для установки всех материалов для MS SQL Server 2008 R2.
и не забудьте перезагрузить машину.
наконец, я решил проблему с Power Shell. Я запускаю PS как администратор с помощью следующей команды:
- ENU\x64\SQLSysClrTypes.компания MSI
- ENU\x64\SharedManagementObjects.компания MSI
- ENU\x64\SQLSysClrTypes.компания MSI
- ENU\x64\SharedManagementObjects.компания MSI
Я использую Visual Studio 2013 и SQL Server 2014. Я получил следующую ошибку Microsoft.От SQLServer.управление.пакет SDK.версия sfc 11.0.0.0 не найдена visual studio. Я пробовал все вещи, такие как установка
ENU\x64\SharedManagementObjects.msi для X64 OS или
ENU\x86\SharedManagementObjects.msi для X86 OS
Переустановка Sql Server
что на самом деле решило мою проблему, это восстановить visual studio 2013(или любая другая версия, которую вы используете) теперь проблема удалена . О чем я думаю проблема Visual Studio не Sql Server, поскольку я смог получить доступ и используйте средство Sql Server.
Я получил эту ошибку при использовании Visual Studio 2013 с Microsoft SQL Server Management Studio 2016 пытается обновить базу данных С Entity Framework migrations
исправление должно было установить Microsoft SQL Server Management Studio 2012 SP1 поскольку в Visual Studio 2013 отсутствовали необходимые библиотеки для подключения к базе данных SQL Server.
Reason for failure
Installing the 32-bit version of SQL Server Compact 3.5 SP2 upgrades SQL Server Compact 3.5 SP1 x86 installations to SQL Server Compact 3.5 SP2. It results in the x86 installation of Compact being different from the x64 installation.
Reason for failure
Installing the 32-bit version of SQL Server Compact 3.5 SP2 upgrades SQL Server Compact 3.5 SP1 x86 installations to SQL Server Compact 3.5 SP2. It results in the x86 installation of Compact being different from the x64 installation.
Cause
Example Scenario 1
Install SQL Server 2008 R2 (this installs the 32-bit version of SQL Server Compact 3.5 SP2).Then, when you run a 64-bit application privately deploying SQL Server Compact SP1, It fails with the “Version Mismatch" exception.
Cause
Reason for the failure
There is a version mismatch which is not enabled as per the policy.
Читайте также: