Diver Dan
Diver Dan

Reputation: 9963

Running application containing a SQLCE db causes "Internal error: Cannot open the shared memory region." on windows 7

I have just finished developing a wpf application that uses a sql ce db. I am using installshield2010 express to package up the application. I have created a folder (ProgramData) within installshield and created a directoy for my db e.g. c:\ProgramData\Test\Data\MyDb.sdf however when I run the application I get an error Internal error: Cannot open the shared memory region.

If I run the application as an administrator everything is ok however I want anyone to be able to run the application, without admin rights.

What do I need to do??

Upvotes: 0

Views: 959

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55571

CommonAppDataFolder ( C:\ProgramData on some OS's ) doesn't give all users write permissions by default. You may have to open it up or redesign your application to account for this.

Upvotes: 1

Related Questions