FIX: "Cannot open the shared memory" error message when you try to create or open a SQL Server Compact 3.5 SP2 database file on a shared network folder

Symptoms

Assume that you have Microsoft SQL Server Compact Edition 3.5 Service Pack 2 (SQL Server Compact 3.5 SP2) installed on the computer. When you try to create or open a SQL Server Compact 3.5 SP2 database file (.sdf file) on a shared network folder, you receive the following error message:
Error: Internal error. Cannot open shared memory.

Additionally, an exception that resembles the following is generated:
Exception type: System.Data.SqlServerCe.SqlCeException

Message=Internal error: Cannot open the shared memory region.

Source=SQL Server Compact ADO.NET Data Provider

HResult=-2147467259

NativeError=25118

Note This issue occurs only in SQL Server Compact 3.5 SP2.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must exit all applications that are using SQL Server Compact. Then, you must uninstall any installations of Microsoft SQL Server Compact 3.5 SP2 and Microsoft SQL Server Compact 3.5 SP2 x64.

Note This SQL Server Compact hotfix has a complete .msi package and does not replace a partial list of files from a previous installation.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of SQL Server Compact 3.5
File nameFile versionFile sizeDateTimePlatform
System.data.sqlserverce.entity.dll3.5.8092.0231,66402-Jun-201202:31x86
System.data.sqlserverce.dll3.5.8092.0297,20002-Jun-201202:31x86
Policy.3.5.system.data.sqlserverce.dll3.5.8092.010,48002-Jun-201202:31x86
Policy.3.5.system.data.sqlserverce.entity.dll3.5.8092.010,48002-Jun-201202:31x86
Sqlceca35.dll3.5.8092.0342,76802-Jun-201202:31x86
Sqlcecompact35.dll3.5.8092.083,69602-Jun-201202:31x86
Sqlceer35en.dll3.5.8092.0147,69602-Jun-201202:31x86
Sqlceme35.dll3.5.8092.063,72802-Jun-201202:31x86
Sqlceoledb35.dll3.5.8092.0169,71202-Jun-201202:31x86
Sqlceqp35.dll3.5.8092.0641,26402-Jun-201202:31x86
Sqlcese35.dll3.5.8092.0362,22402-Jun-201202:31x86
Microsoft.synchronization.data.sqlserverce.dll3.5.8092.092,40002-Jun-201202:31x86
For all supported x64-based versions of SQL Server Compact 3.5
File nameFile versionFile sizeDateTimePlatform
System.data.sqlserverce.entity.dll3.5.8092.0231,66402-Jun-201202:31x64
System.data.sqlserverce.dll3.5.8092.0297,20002-Jun-201202:31x64
Sqlceca35.dll3.5.8092.0574,19202-Jun-201202:31x64
Sqlcecompact35.dll3.5.8092.0118,00002-Jun-201202:31x64
Sqlceer35en.dll3.5.8092.0148,20802-Jun-201202:31x64
Sqlceme35.dll3.5.8092.089,84002-Jun-201202:31x64
Sqlceoledb35.dll3.5.8092.0257,77602-Jun-201202:31x64
Sqlceqp35.dll3.5.8092.01,131,76002-Jun-201202:31x64
Sqlcese35.dll3.5.8092.0670,96002-Jun-201202:31x64
Microsoft.synchronization.data.sqlserverce.dll3.5.8092.092,40002-Jun-201202:31x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Thuộc tính

ID Bài viết: 2718718 - Xem lại Lần cuối: 10-09-2012 - Bản sửa đổi: 1

Phản hồi