Subject CreateFileMapping failed on Vista using Firebird Embedded 2.01
Author mario.muja
Hi,
I try to connect to a Firebird 2.01 Embedded database on Vista
Business using the ADO.NET provider and C#.

My connection string looks as follows:

FbConnectionStringBuilder csb = new
FbConnectionStringBuilder();
csb.DataSource = "127.0.0.1";
csb.Database = "127.0.0.1:" + factTableName
+ ".fdb";
csb.UserID = "SYSDBA";
csb.Password = "masterkey";
csb.ServerType = FbServerType.Embedded;

When I open the database, I receive the exception "operating system
directive CreateFileMapping failed".

How can I solve this problem?

I have tried the following to overcome this problem:

- set IpcName = Global\FIREBIRD in firebird.conf
- set TempDirectories = d:\ in firebird.conf
- replace 127.0.0.1 by localhost in the connection string
- do not create database files on the C: drive

I have thoroughly searched the newsgroups and this forum for a
solution but could not find a working tip.

The problem does not occur when I switch off the Vista UAC feature in
control panel/user account settings. However, I cannot allow this on
the production system.

I appreciate your help.

Best Regards,
Mario Muja