Unable to connect to remote server problem

I have an IIS ISAPI server and I am having some problems. I can connect to it directly using the url in my web browser and it returns the info as expected. The /BIN returns the rodl xml. I connect to ther server in design time by setting the target url and then I get a drop down of the services available in the TRORemoteService. In the ROService Tester I can connect to the server and get a list of services. Selecting a service I get a list of available methods. However, just like when I try to access a method from my client app, as soon as I try to action a method (ServerTime) I get an “unable to connect to remote server” exception. Any ideas?

Using Delphi 2007 and the latest release of RO

A little more information. If I turn off the iis pool then I get a 503 Service Unavailable, which is what I expect. When I turn it on I get Unable to connect to remote server.

In the tester, I can get the list of services available, but if I select a service that descends from another it throws an exception when trying to get the methods and only pulls back the methods in itself and not those that are inherited.

I switched the connection component from Synapse to Indy to see if I got anymore info on the exception. And I did - the “Socket Error #10054. Connection reset by peer”

any info would be really appreciated. thanks

Hello,
We couldn’t reproduce it.
We tested it on a new standart isapi project. IIS 5.1
Can you send us a small testcase which reproduce it? What IIS ver do you use?

I doubt I could. All my other remobjects app behave exactly as they should, so it is really strange. I have even recreated the whole server app and still has this problem. I just hoped that someone had experienced something similar and might have a solution.

russellweetch said: I have even recreated the whole server app and still has this problem. I just hoped that someone had experienced something similar and might have a solution.

Unfortunately we didn’t faced with such problem before. Looks like this happens due IIS settings. What version of OS and IIS you are using? Does it have any unusual settings? Is Service tester running on the same computer with IIS?

Have managed to get it to run on IIS 7 / Win 2008 Server. But it won’t run on IIS 6 / Win 2003 for some reason. Yet RO Servers I have written in Delphi 6 are running on there. It doesn’t even respond to a straight web call although running it as a standalone exe does.The tester is not running on the server.

Tester is on a different server

Hello,
We coudn’t reproduce it.
Our steps:

  1. Install Win2008Server x32 on clear VM
  2. Install IIS7
  3. Create and build ISAPI project in D2007 (use the latest RO release)
  4. Put isapi project to iis root folder
  5. Setup ISAPI & CGI restrictions and Handler Mappings
  6. Run Tester on another computer
  7. Create a connection (url like: http://myserver/myproject.dll/bin)
  8. Test Sum function. Start with ‘Continous test’ and call Sum a lot of times. It works properly.

Can you describe more detail your steps? You can also make a video and send link here.

If you look at my last comment you will see that the issue is not with 2008/IIS7 but 2003/IIS 6. Thanks. I’ll try and make a video

Hello,
Retested it on 2003/IIS 6. ServiceTester works properly.

really not sure what the issue is - possibly dbx? anyway have used a work around to allow it to use the stanadlone server. Thanks fro all your efforts though.