Firebird database connection by FireDAC after Windows 10 update - delphi

I have some delphi applications with connection to Firebird database by FireDAC technology. It works fine, but after Windows 10 update 1803, cannot connect to database when I call application stored in network path (example: \comp1\share\myapp.exe or Q:\myapp.exe, Q: is mapped server path). Error status is 335544721 with illegal parameter.
The same build of application stored on local path works fine. Can anybody help Me?

I've got the same problem!! The reason is the Firebird version 1.5.x (maybe 2.5 too?). Windows Update 1803 blocks the communication between client and server. The only solution is to migrate to Firebird 3.0.x (or to uninstall the update - not a really good option).

I had the same problem with my delphi application I developed a couple years ago, after an update to windows 10 in one of my machines it suddenly drops the connection to the firebird server (2.50 in superserver mode) installed on a windows 7 host, while my other hosts (win xp, win 2003, win 7 and 8.1) connects normally, when I ping or telnet to the server adresse from win10 (telnet 192.168.1.X 3050) the connection establishes, I have tried everything like enabling Smbv1 and disabling v2 and v3, run it under a VM (win 7) machine inside win10 I was surprised to not being able to connect too, then I realised that it wasn't a network hardware configuration problem, but for unexplained reasons WINDOWS DEFENDER, I just disabled it and then my app was able to connect.
And don't rely on firebird's returned error messages they don't discribe the real issue, and can mislead you.
I forgot to mention that I did enabled some services before disabling win defender, wich were disabled after windows update 1803:
Set both Function Discovery Services to Automatic and Start Them
SSDP Discovery set to automatic.
UPnP Device Host set to automatic.

Related

Delphi remote debugger not working over a WAN connection

I am trying to perform a remote debug over the internet, however, I receive the following error.
Error
Debugger Assertion Failure: "!"mkapistream::openConnection()""
in ..\win32src\rproxy.cpp at line 298
OK
Details >>
I have opened up the default PAServer port i.e. 64211, as well as the remote debugger port i.e. 64447 on my router and, can confirm that they are available from an external source.
I have tried with both Delphi XE3 which is my development environment as well as with a trial version of the new Delphi 10.3, however, both versions of Delphi throw the exact same error.
This error occurs, when I try using the Load Process|Remote and Attach to Process|Remote.
If I attempt the exact same process over a LAN connection everything works as expected, it only seems to be over a WAN which the problem occurs.
Below are my environment details:
Windows 10 - Version 1607 (OS Build 14393.2608)
Delphi XE3 Update 2 Enterprise - Version 17.0.4770.56661
PA Server (paserver.exe) - Version 17.0.4770.56661
Remote debugger (rmtdbg170.exe) - Version 17.0.4770.56661
and
Delphi 10.3 Architect Trial - Version 26.0.32429.4364
PA Server (paserver.exe) - Version 26.0.32429.4364
Remote Debugger (rmtdbg260.exe) - Version 260.1810.29.29349
I have also registered both libraries bordbk170.dll and bordbk170N.dll for Delphi XE3 as well as bordbk260.dll and bordbk260N.dll.
If I set up an VPN connection, I can remote debug over the WAN connection, but it seems as if the remote debugger just cannot resolve the cons over a straight WAN connection.
So, my question is the following:
Can one remote debug a Delphi application over a WAN connection?
You probably need to find out what port the remote debugger is looking for and redirect that using port forwarding on your local router to your PC

Windows10 internet connection problems after restarting. No hardware devices connections found

Yesterday was 13th, probably well known virus caused crash of internet connection and Windows 10 functions. I could not use keyboard and mouse either to restart or to repair Windows10 with advanced options. With installation USB program started but with bugs and no internet connections was available since no hardware devices found.
The freeware tool cFosICS manages Windows Internet Connection Sharing. It comes with additional commands to fix the Windows 10 bug which may stop Internet Connection Sharing from working after a reboot.
See details here: https://www.cfos.de/en/cfosspeed/cfosics.htm
Try Installation from a DVD .This is Most preferable.Or you can use latest version of RUFUS to boot your Flash Drive.Install the latest version of Windows 10 Pro.
Goto Here For Download
Make sure you have internet connectivity to Sign in to Windows Account.
Set the Update off if you have all problems are solved.
Hope it will help !!
I checked status on cmd with configip/all and got answer IP routing is disabled. So I went to device manager I looked in help how to connect to internet. In Microsoft Management Console/Contents/Get Connected/ there is Connecting to the Internet procedure.
I used Get-NetAdapter. t-NetAdapter: Cannot connect to CIM server error. The service can not be started, either because it is disabled or because another software installation is in progress. Same with Test-Configuration command. The error means: „Cannot connect the computer to the server because of restart pending.
The simple is to use Microsoft Virtual Agent which will with your problem question and it will guide it through steps needed to solve problem. It also recommednds cmd commands as referred above. In my case I had to update Windows10 with formed USB key.

Connecting to Firebird 3

I have installed Firebird 3.0.1 on a PC and on a VM client. I installed Flamerobin on both to test the connection.
I can connect to localhost on both PC and VM using Flamerobin, so I assume the Firebird server is running on both and Flamerobin is installed on both OK
I can connect to the Firebird server on the VM from the PC and open a database Ok
From the VM I can open a database on the PC, but when I try to retrieve the server version on the PC I get an error ISC_Service_attach failed (Unable to complete network request to host).
I have no idea what the problem is given that I can open a database ok, but cannot access any of the utility services.
I am using fbclient.dll 3.0.1.32591 on both VM and PC
If you can achieve network request to server, you need to check firewall setings on server and set fb default port as inbound acceptable. If you would had same problem after that, than you probably need proper fbclient library, for FB3 on client, VM. Hope this helps.

Port Forwarding by Using “HNetCfg.NATUPnP” Ole Object Failed - It was working before

I read the following question:
Port Forwarding by Using "HNetCfg.NATUPnP" Ole Object Failed
Used that example and worked successfully on windows xp sp3. Delphi Xe2. I could route and external port to my pc and worked just fine in everything.
After some days of work, this code stopped working:
Ports := Nat.StaticPortMappingCollection;
Ports is now getting NIL.
In the same network, the same code works in a windows 7. I do not have other windows xp for testing.
Seems that something changed, and seems to be in the environment. My windows xp is a virtual box session. The host is a windows 7 were the same code is still working. I have not noticed any change on virtual box params, no software update.
I am looking for guidance where to look for.

How to create a telnet connection in Delphi applications

I want to create a telnet connection in Delphi that will allow me to connect to the command prompt on my computer.
If you want a telnet server, Windows XP and newer comes with a telnet service that just needs to be enable and started via the service control manager. It is disabled by default when windows is installed. I recommend against writing your own telnet server unless you really know what you are doing because you are likely to create a lot of security issues.

Resources