Delphi - RPC server unavailable when debugging COM+ - delphi

I have a COM+ application consisting of a client DLL and many middle-tier DLLs.
The application gets run by using an MSC application file.
When I am in die IDE and run my client DLL, I have the following run parameters to launch, run and debug my client DLL (this works great):
The theory is that I should be able to debug my middle-tier by running the DLL with the following parameters (I get the ProcessID from my COM+ Application in Component Services):
Once it is running, I should then be able to start my client MSC application and that should allow me to attach and debug my middle tier. I have seen this working before.
Running my Client DLL from the IDE or as an MSC application works without issues but when I try to debug my middle-tier, as described above, I get a "The RPC server is unavailable" error.
I am running everything locally so I am not sure what server it is referring too.
I have also made sure the following services are up-and-running:
DCOM Server Process Launcher, Remote Procedure Call (RPC) and RPC Endpoint Mapper
Any idea what else could cause this error or what server it is trying to connect too?

It turns out there were more than 1 version of the DLLs registered on my pc. I inherited the pc from a previous employee and noticed some install files of the application on the C drive (all my stuff is on the E drive). I ran the uninstall procedure on the C drive that also unregistered some DLLs and my RPC problem was resolved.

Related

Problem in running cen/xfs client application as windows service

I'm developing a cen/xfs client application in c++ which will register for the events and receive it. I installed the application (.exe file) as a windows service and the system is rebooting after few minutes once i started the service, but when i execute the .exe file directly it works properly. Anyone know why?

App with TSocketConnection : Error on register server application

I have an 3-tier app developed using TSocketConnection. It has the client app and the server app, both developed in Delphi XE.
I know when i install the app in a new machine, i have to register the server in command prompt running as Administrator, like this :
myserver.exe -regserver
I always did it and always worked. But somehow, there is a new Windows 10 machine that won't accept this command. I run the command, no message is shown. When i try to run my app, i get this error message :
object not available: {00421208-b759-11d5-a92f-0010dcb08b6c}
It seems something is blocking the access to the registry in this machine.The current user is logged as administrator and i removed all anti-virus and disabled Windows Defender.
Is there another way to register the app server, so i could at least debug what is going on ?
Thanks

How to deploy a Delphi Soap Client (.EXE) on a Windows XP/Windows 2003?

I built a Delphi-7 Windows Application which uses some web services. The application is built in such a way that it does not require run-time DLLs. When I deployed it on a Windows 2003 server it fails while calling the web service. It results in error "Access violation at address 00c05269. Write of address 00c05269". I believe the reasons is that it needs some package to be installed. Can anybody help me to figure that out?
TIA
Just a guess: If the client was built with D7, that runtime will AV on machines with DEP enabled. See the following link for more information:
groups.google.com/group/borland.public.delphi.webservices.soap/msg/b19f3c2681de50f4
You can disable DEP for just that client (or system-wide) on the Win 2003 machine to see if that's the issue:
technet.microsoft.com/en-us/library/cc738483(WS.10).aspx
And if it is, you can download a SOAP runtime fix from here:
http://cc.embarcadero.com/Item/24535
Cheers,
Bruneau
Some troubleshooting suggestions.
Can you browse to the web service from a web browser? If not, you have a connectivity problem.
If this works, I would build a bare bones client that consumes the web service and calls a couple of methods but doesn't read from or write to any external files.

How to do remote debugging of DLL in delphi 7 from scratch

can anyone please help me out, to how to do remote debugging of a DLL (Just a dll) which is independent of the exe.
The dll is a service which will be running in the server machine and the DLL source code is at the client machine. Now when this service is running at the server machine i want to debug the delphi code which is at the client machine using delphi 7.
Compile the DLL with remote debugging symbols and deploy both (.dll, .rsm, etc) on the server machine
Install the remote debugger on the server machine
Start the remote debugger on the server machine
Start Delphi on the client machine and load the DLL project
Start a remote debugging session from Delphi by choosing Run - Attach to process and fill in the server machine
Select the process on the server machine which loaded the DLL
Debug remote
Also see http://delphi.wikia.com/wiki/Remote_Debugger

Files needed to deploy delphi 2010 dbxpress application

I'm having trouble deploying my delphi application. It uses dbxpress to access mysql 5.1 database. When i run the application from another computer, an error occurs. I've already included the midaslib.dll in my application and copied the dbxmys.dll and libmysql.dll in the same folder as my application.
Hope someone can help.
Can you make a connection with the ping command? Can you make a connection to the database itself? Just with the command prompt. Not with Delphi.
Maybe a firewall is blocking or the remote user is not authorized.

Resources