尝试使用Firebird嵌入式服务器-指定的服务器类型不正确 [英] Trying to use the firebird embedded server - Specified server type is not correct
问题描述
我在使用Visual Studio 2005的Windows 7上运行,我正在尝试使用嵌入式firebird服务器。遵循提供的安装详细信息后,我收到消息:-
Running on Windows 7 using Visual Studio 2005, I am attempting to use the embedded firebird server. Having followed installation details provided, I get the message:-
指定的服务器类型不正确。
Specified server type is not correct.
我正在使用:-
FirebirdSql.Data.FirebirdClient.dll版本2.5.2.0。
FirebirdSql.Data.FirebirdClient.dll version 2.5.2.0.
fbembed.dll版本2.5.0.26074
fbembed.dll version 2.5.0.26074
我将zip文件Firebird-2.5.0.26074-0_Win32_embed.zip的全部内容复制到了我的应用程序目录中
I copied the entire contents of the zip file Firebird-2.5.0.26074-0_Win32_embed.zip to my application directory, as there seem to be a variety of ideas as to what should be there.
我还复制了fbembed.dll,并将其重命名为gds32.dll和fbclient.dll,如其他地方所建议的那样。
I also copied fbembed.dll and renamed it to gds32.dll and fbclient.dll as has been suggested elsewhere.
我的连接字符串是:-
User = SYSDBA; Password = masterkey; database = C:\数据库\EMPLOYEE.FDB;服务器类型= 1; Dialect = 3;;
User=SYSDBA;Password=masterkey;database=C:\Database\EMPLOYEE.FDB;servertype=1; Dialect=3;";
所有用户都可以完全控制数据库文件。
All users have full control on the database file.
我有一个在同一台机器上运行的firebird服务器上,我确保该服务已停止以避免任何混乱。
I have a firebird server running on the same machine, I ensured the service was stopped to avoid any confusion.
失败时的堆栈跟踪显示:-
The stack trace at the failure shows:-
中的
FirebirdSql.Data.FirebirdClient.ClientFactory.CreateDatabase(FbConnectionString
选项)在
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()在
的FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()
的FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateDatabase(FbConnectionString options) at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create() at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut() at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
赞赏任何想法。
推荐答案
无论出什么问题,都已经解决了通过使用最新版本(2.7.5)的Firebird点网提供程序(感谢firebird邮件列表中的Jiri)。
Whatever the problem was, it has been resolved by using the latest version (2.7.5) of the Firebird dot net provider (thanks to Jiri on the firebird mailing lists).
这篇关于尝试使用Firebird嵌入式服务器-指定的服务器类型不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!