登录期间发生FirebirdSql错误,请检查服务器firebird.log以获取详细信息 [英] FirebirdSql Error occurred during login, please check server firebird.log for details
本文介绍了登录期间发生FirebirdSql错误,请检查服务器firebird.log以获取详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用FirebirdSQL .net提供程序(使用FirebirdSql.Data.FirebirdClient)连接并从Firebird数据库读取数据.这是代码:
I am trying to connect and read data from Firebird database using the FirebirdSQL .net provider (using FirebirdSql.Data.FirebirdClient). Here is the code:
FbConnection viewdataConnection=new FbConnection();
viewdataConnection.ConnectionString = "database=localhost:c:\\firebirdTest\\testDB.fdb;user=sysdba;password=firebird";
viewdataConnection.Open();
尝试打开()连接时,出现错误:
While trying to Open() the connection, i get an error:
An unhandled exception of type 'FirebirdSql.Data.FirebirdClient.FbException' occurred in FirebirdSql.Data.FirebirdClient.dll
Additional information: Error occurred during login, please check server firebird.log for details
以下是例外情况详细信息:
Here is the exception detail:
FirebirdSql.Data.FirebirdClient.FbException was unhandled
ErrorCode=335545106
HResult=-2147467259
Message=Error occurred during login, please check server firebird.log for details
SQLSTATE=08006
Source=FirebirdSql.Data.FirebirdClient
StackTrace:
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
at FirebirdSql.Data.FirebirdClient.FbConnectionPoolManager.Pool.CreateNewConnectionIfPossibleImpl(FbConnectionString connectionString)
at FirebirdSql.Data.FirebirdClient.FbConnectionPoolManager.Pool.GetConnection(FbConnection owner)
at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
at UsingFirebird.FormUsers.FormUsersLoad(Object sender, EventArgs e) in C:\Users\vikas\Downloads\UsingFirebird\UsingFirebird\UsingFirebird\FormUsers.cs:line 46
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
ErrorCode=335545106
HResult=-2146233088
IsWarning=false
Message=Error occurred during login, please check server firebird.log for details
SQLSTATE=08006
Source=FirebirdSql.Data.FirebirdClient
StackTrace:
at FirebirdSql.Data.Client.Managed.GdsConnection.Identify(String database)
at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateManagedDatabase(FbConnectionString options)
at FirebirdSql.Data.FirebirdClient.ClientFactory.CreateDatabase(FbConnectionString options)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
InnerException:
请帮助.
推荐答案
如果您需要以应用程序模式运行Firebird服务器,请以管理员身份运行它.
If you need to run the Firebird server in application mode, run it as administrator.
这为我解决了问题.Firebird服务器需要对安装文件夹中的某些文件具有写权限.
This solved the problem for me. The Firebird server needs write access to some files in the installation folder.
这篇关于登录期间发生FirebirdSql错误,请检查服务器firebird.log以获取详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文