Solved

CAnnot open shared memory

Posted on 2010-11-20
5
1,476 Views
Last Modified: 2012-05-10
I have a working program that I am testing on a PCVirtual Windows7 32bit clean install. The program works fine on the dev machine but on the test system I get the error " Cannot open shared memory region'
However if I run the program as an administrator (right click on the exe) it works fine.

The database is a SQL Server Compact 3.5 sdf there is no password, user etc. that is installed into the application folder in "Program Files"

 My connection string is "Data Source=|DataDirectory|\NewSummit.sdf"

I am using VS2010


Any ideas?
0
Comment
Question by:milkwood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34180308
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 34180338
Are you using Shared Memory yourself, or is this message triggered by database access? If the latter, just disable Shared Memory and allow (only) for TCP connection in SQL Server network settings for both client and server drivers.
0
 

Author Comment

by:milkwood
ID: 34181915
Codecruiser
Yes, I have an identical problem. The message is received after the connection string is initialized. The machines that the program will be eventually run on cannot be relied on to be administrators, unlikely in fact.

I have tried putting the database in the ProgramData subdirectory on the client machine with the same effect.

I have had the installation program "Download prequisites from the Vendors installation site",  which is a pain, the same result.

The only way I can the program to work is with a right click

0
 

Author Comment

by:milkwood
ID: 34182019
I have found that if the setup program installs into a directory ie. [WindowsVolume]\SummitSoilRecs the program works fine.

 It seems too easy, what would be the downside?
0
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 total points
ID: 34182691
No downside. It is just "non-standard", and no folder redirection is applied - that means the data and config stays the same for all users, which is probably the intended behaviour.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question