2

我正在尝试从我的 MVC 6 应用程序运行 firebird 嵌入式数据库。我正在使用 Fluent Nhibernate。配置如下图所示:

var firebird = new FirebirdConfiguration();

var cs = @"User=SYSDBA;Password=masterkey;Database=SampleDatabase.fdb;DataSource=localhost;
Port = 3050; Dialect = 3; Charset = NONE; Role =; Connection lifetime = 15; Pooling = true;
            MinPoolSize = 0; MaxPoolSize = 50; Packet Size = 8192; ServerType = 1; ";

SessionFactory = Fluently.Configure()
                .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()))
                .Database(firebird.ConnectionString(cs)).BuildConfiguration()
                .BuildSessionFactory();

我还安装了 nuget 包FirebirdSql.Data.FirebirdClient

但是我收到错误:

Unable to load DLL 'fbembed': The specified module could not be found.

我正在尝试将此 dll 包含在我的参考中,但随后我收到构建错误,指出无法恢复此参考。

在此处输入图像描述

在此处输入图像描述

我需要做什么才能让它运行?

PS:由于类似的情况/错误,我也未能使用 SQLite。

4

1 回答 1

0

您可能需要将 fbembed.dll 添加到您的 asp.net 应用程序的 bin 文件夹中,还将 icu* 文件(来自 Embedded Firebird ZIP 包)添加到 bin 文件夹中。

于 2015-08-21T09:14:56.767 回答