“无法完成网络请求"或“连接被拒绝";只需一台机器上的Firebird [英] "Unable to complete network request" or "connection rejected" for Firebird, on just one machine

查看:798
本文介绍了“无法完成网络请求"或“连接被拒绝";只需一台机器上的Firebird的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在公司的一台计算机上,我遇到了一个看似独特的问题(必须是我老板的问题).我有一个使用TSQLConnection的Borland C ++程序.它连接到作为应用程序运行的本地Firebird服务器2.1.1.17910.其他计算机工作正常.

I've got a seemingly unique issue on just one computer in the company (had to be my boss's). I've got a program from Borland C++ that uses a TSQLConnection. It connects to a local Firebird server 2.1.1.17910 running as an application. The other computers work fine.

它将绝对不会在这台便携式计算机(本地服务器)上连接任何内容.我记得他在安装InterBase时总是遇到麻烦.我认为他可能安装了7.5.现在已经不见了,我经过了检查,清除了所有旧的 GDS32.dll 文件,并用FireBird对其进行了更新,无论如何,该连接都在使用 fbclient.dll .

It will absolutely not connect on this one lappy (local server) for anything. I remember he always had trouble with InterBase when it was installed as well. I think he installed up to 7.5 possibly. It's gone now and I went through and wiped out any old GDS32.dll files and updated them with the FireBird ones, and the connection is using fbclient.dll anyways...

我尝试卸载并重新安装FB并将其作为服务运行.没用

I tried uninstalling and reinstalling FB and running it as a service. Didn't work.

我进入了etc/services并添加到这一行:

I went into etc/services and added in this line:

gds_db           3050/tcp                           #Firebird

没有骰子.

在数据库位置前面打"localhost:"会出现此错误

Sticking "localhost:" in front of the database location gets this error

无法完成对主机"localhost"的网络请求. 无法建立连接.

Unable to complete network request to host "localhost". Failed to establish a connection.

我检查了netstat,它正在127.0.0.1端口3050上监听...

I checked netstat, it's listening on 127.0.0.1 port 3050...

尝试在数据库位置之前粘贴"127.0.0.1:",我得到:

Tried sticking "127.0.0.1:" before the database location, I get:

连接被远程接口拒绝

connection rejected by remote interface

尝试完全取出127.0.0.1或localhost,而仅使用数据库位置(这是正确的位置),我得到

Tried taking 127.0.0.1 or localhost out entirely and just using the database location, which is the right location, I get

不可用的数据库.

Unavailable Database.

完全相同的CD 在其他计算机上也可以正常工作.我尝试粘贴"localhost","127.0.0.1",并且在数据库位置之前完全没有任何内容,并且在其他计算机上都可以正常连接.

The exact same CD works fine on other machines. I tried sticking "localhost", "127.0.0.1", and nothing at all in front of the database location and all connect fine on other machines.

我已经让他关闭了防火墙,但仍然没有骰子……这个问题已经存在了很长时间,我已经走到尽头了.我已经尽我所能想到的一切.它在我的计算机,空白测试计算机,beta测试人员……除了我的老板之外的所有人中都可以正常工作.任何帮助将被极大地赞赏.

I've made him turn his firewall off, still no dice... This problem has been going on for a long time and I'm at the end of my rope. I've tried everything I can possibly think of. It works fine on my computer, blank test computers, for the beta testers... everybody except my boss. Any help would be vastly appreciated.

推荐答案

我今天完全"有同样的问题2011年5月11日 并且在这个问题上进行了有条不紊的工作. 在互联网上搜索提示和技巧. 我尝试卸载Firebird2.重新安装了它.当我尝试通过Delphi使用数据库时,同样的错误仍然存​​在. 我在system32文件夹中重命名了GDS32.DLL,并从其他一切正常的计算机上复制了它. 还是同样的问题.总是出于某种原因拒绝连接数据库.

I had "exactly" same problem now today 5/11-2011 and went to work quite methodically on the issue. Searched internet for hints and tips. I tried uninstalling my Firebird 2. I reinstalled it. Same error persisted when I tried using database via Delphi. I renamed GDS32.DLL in system32 folder and copied it from another computer where everything was working fine. Still same problem. Always refusing to connect to the database for some reason.

我检查了Firebird的日志文件,是的.它总是拒绝,但是当我使用IB-Console时,我可以创建一个新数据库或使用现有数据库.

I checked the logfile of Firebird and.. yes. it always refuse, but when I use IB-Console, I can create a new database or work with existing ones.

我决定做最后一次尝试,然后再次卸载了Firebird. 然后,我在programfiles \ firebird中删除了其余的安装. 我使用AML Free注册表清洁程序进行了完整的注册表检查. (我认为大多数优秀的人都会这么做)

I decided to do one final attempt and uninstalled Firebird again. I then deleted the rest of the installation in programfiles\firebird. I did a complete registry check with AML Free registry cleaner. (I think most good ones will do)

它发现了大约1500个无效条目,我刚刚决定全部修复"

It found about 1500 entries that were invalid and I just decided to "Fix All"

完成后,我重新安装了firebird2.将其安装为服务器.

When finished, I reinstalled firebird 2. Installed it as a server.

Voila.

我现在可以在我的软件开发中再次将IBqueries和SQL数据库与Firebird一起使用. 我最好的猜测是Windows Registry有问题,尽管我无法查明.

I can now use IBqueries and SQL Databases with Firebird in my development of software again. My best guess is that something was wrong with Windows Registry, although I can not pinpoint this.

祝你好运和最诚挚的问候. 挪威莫滕,星期六晚上很晚.

Good luck and best regards. Morten, Norway, a very late Saturday evening.

这篇关于“无法完成网络请求"或“连接被拒绝";只需一台机器上的Firebird的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆