SQLExpress - Xb2.NET     ot4xb  
xb2net
Webserve demo error
Thread Starter: Jack Started: 3/2/2008 11:24 PM UTC
Replies: 19
Webserve demo error
As per instructions, I  downloaded the demo of xb2net. Ran go.bat.

Got an error:  

System error 1060 has occurred.
The specified service does not exist....

Help please.

Jack Miller
Re: Webserve demo error
Jack <jack@my-esa.com> wrote in news:Xns9A55BB4164376jackmyesacom@
62.193.212.32:

As per instructions, I  downloaded the demo of xb2net. Ran go.bat.
Got an error: System error 1060 has occurred.
The specified service does not exist....

Don't worry about this. The error is from trying to stop Microsoft IIS (which would interfere with the Xb2.NET webserver if it was running). Obviously you do not IIS installed, so no problem at all.

The GO.BAT batch file will compile and execute WEBSERVE.EXE (the sample Xb2.NET webserver) and then launch a web browser. The Xb2.NET "Start Here" page will appear in the browser.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Webserve demo error
Boris Borzic <ng-at-sqlexpress-dot-net> wrote in
news:Xns9A569BB118799SQLExpress@62.193.212.32:  

Jack <jack@my-esa.com> wrote in news:Xns9A55BB4164376jackmyesacom@
62.193.212.32:
As per instructions, I  downloaded the demo of xb2net. Ran go.bat.
> > Got an error: > System error 1060 has occurred.
> The specified service does not exist....
Don't worry about this. The error is from trying to stop Microsoft IIS
(which would interfere with the Xb2.NET webserver if it was running). Obviously you do not IIS installed, so no problem at all.
The GO.BAT batch file will compile and execute WEBSERVE.EXE (the
sample Xb2.NET webserver) and then launch a web browser. The Xb2.NET
"Start Here" page will appear in the browser.
Best regards,
Boris Borzic

Boris, it  still doesn't work. I run webserve.exe, then open a browser. I get the message that it cannot connect.

I've followed the instructions in the readme, but I still can't get it to work. Any help would certainly be appreciated. I really want to  make this work; my client has been using our XB app for a couple years now, but needs to go to a web-based app because they are opening about 50 other offices. They need realtime data!

Thanks,

Jack Miller
Re: Webserve demo error
Jack Miller <jack@my-esa.com> wrote in
news:Xns9A56B1A175345jackmyesacom@62.193.212.32:  

Boris, it  still doesn't work. I run webserve.exe, then open a
browser. I get the message that it cannot connect.

What happens when you type the following in the web browser address bar:
http://localhost/

(NOTE: You need to have WEBSERVE.EXE running on the same machine)

Some other notes:
- shut down Skype (if you have it running)
- temporarily shut down your windows firewall

If it still doesn't work, download TCPView: http://technet.microsoft.com/en-ca/sysinternals/bb897437.aspx
and see if there is some other process with a local address bound to port 80. Disable the process and run the test again.

I've followed the instructions in the readme, but I still can't get it
to work. Any help would certainly be appreciated. I really want to make this work; my client has been using our XB app for a couple years
now, but needs to go to a web-based app because they are opening about
50 other offices. They need realtime data!

This is a perfect application for Xb2.NET.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Webserve demo error
Boris Borzic <ng-at-sqlexpress-dot-net> wrote in
news:Xns9A56C00B17BCCSQLExpress@62.193.212.32:  

Jack Miller <jack@my-esa.com> wrote in
news:Xns9A56B1A175345jackmyesacom@62.193.212.32:  
> Boris, it  still doesn't work. I run webserve.exe, then open a
> browser. I get the message that it cannot connect.
What happens when you type the following in the web browser address
bar: http://localhost/
(NOTE: You need to have WEBSERVE.EXE running on the same machine)
Some other notes:
- shut down Skype (if you have it running)
- temporarily shut down your windows firewall
If it still doesn't work, download TCPView: http://technet.microsoft.com/en-ca/sysinternals/bb897437.aspx
and see if there is some other process with a local address bound to port 80. Disable the process and run the test again.
I've followed the instructions in the readme, but I still can't get
> it to work. Any help would certainly be appreciated. I really want to
> make this work; my client has been using our XB app for a couple
> years now, but needs to go to a web-based app because they are
> opening about 50 other offices. They need realtime data!
This is a perfect application for Xb2.NET.
Best regards,
Boris Borzic

Did everything you suggested. Still get the "Cannot connect" message.

Getting very frustrated. I know it must work or else you wouldn't be in
business. LOL  Just need to figure out what's wrong here.  

TCPView didn't show anything else running. Disabled the firewall and
everything else that might interfere. Still no success.  

Jack Miller
Re: Webserve demo error
Jack,
which version of OS are your running?
Which version of Xbase++?
( OS > Windows XP, SP1 ) .and. ( Xbase < 1.82 ) -> probably disable DEP!

Regards,
Martin
--  

______________________________

Deutschsprachiges Xbase-Forum:
http://www.xbaseforum.de/
______________________________
Re: Webserve demo error
Hi,

IIS by default use the port 80 in all IPs of the machine. Check if IIS is running and stop the service.

Regards,
Pablo Botella
Re: Webserve demo error
TCPView didn't show anything else running.  

This can't be - on a "normal" XP machine (assuming that you are running
XP), there are many processes listening on various ports. Make sure that
you have "show unconnected endpoints" enabled.

If webserve.exe is actually running, you should at least see this process
listening on port 80.

If you are browsing the internet, you should also see those connections.

HTH & regards
Thomas
Re: Webserve demo error
Jack Miller <jack@my-esa.com> wrote in news:Xns9A56D0D6088E3jackmyesacom@
62.193.212.32:

Did everything you suggested. Still get the "Cannot connect" message.

Do you have another machine where you can test this?

If you can't get this running, send me an email and we will set up a webex session so I can connect to your machine to figure out what the problem is.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Webserve demo error
Also try another port:

Type this in a DOS prompt:
  WEBSERVE /port:8012

Open a browser and type this in the address bar:
  http://127.0.0.1:8012/


Boris Borzic <ng-at-sqlexpress-dot-net> wrote in
news:Xns9A57540D51D4BSQLExpress@62.193.212.32:  

Jack Miller <jack@my-esa.com> wrote in
news:Xns9A56D0D6088E3jackmyesacom@ 62.193.212.32:
Did everything you suggested. Still get the "Cannot connect" message.
Do you have another machine where you can test this?
If you can't get this running, send me an email and we will set up a
webex session so I can connect to your machine to figure out what the
problem is.  
Best regards,
Boris Borzic
Re: Webserve demo error
"Martin Altmann" <Altmann@altem.de> wrote in news:6r6kri4ufkd868e.040320080813@VDS-472773:

Jack,
which version of OS are your running?
Which version of Xbase++?
( OS > Windows XP, SP1 ) .and. ( Xbase < 1.82 ) -> probably disable DEP!
Regards,
Martin

XP Pro SP2
XB 1.90.331

Any help is appreciated.

Jack Miller
Re: Webserve demo error
Jack,

Make sure you have (valid) Open SSL DLLs in your path -- or better in your Xb2Net directory, as the WebServ.exe program (Xb2Net Demo Version 3.2.00) will not run without them. If you run it in the debugger, you will see some IDSC-type error:

ERROR: Loading WEBSERVE.EXE
Exception: 0xC0000005
Possible DLL version conflict

You can use the DLLs ("LibEAY32.dll" and "LibSSL32.dll") from here:

http://www.slproweb.com/products/Win32OpenSSL.html

Xb2.Net Demo Version 3.1.08 didn't have this problem, it showed a message instead!

BTW, TCPView will NOT show the WebServ.exe program listening on either
port 80 or port 443! It will only show connections after/while they are established. I don't know for sure why, but that is what I see here!

-- Andreas

---                                                                      ---
 Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
 415 Gute Street                     or: Andreas@DDPSoftware.com
 Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
 Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---
Re: Webserve demo error
Andreas Gehrs-Pahl <Andreas@DDPSoftware.com> wrote in news:1szxqa2lm711e
$.y7mgktle8zlk.dlg@40tude.net:

Make sure you have (valid) Open SSL DLLs in your path -- or better in your Xb2Net directory, as the WebServ.exe program (Xb2Net Demo Version 3.2.00) will not run without them. If you run it in the debugger, you will see some IDSC-type error:
ERROR: Loading WEBSERVE.EXE
>Exception: 0xC0000005
>Possible DLL version conflict

You don't need the OpenSSL DLL's in order to run WEBSERVE.EXE. You probably got this error due to a OpenSSL DLL version conflict. If you don't have OpenSSL, then you will get the following message in webserve:

    ERROR: HTTPS server cannot be started!
    Unable to load LIBSSL32.DLL
    Do you have the OpenSSL library installed?

But, you can still connect to the webserver on port 80 (HTTP), you just won't be able to use HTTPS.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Webserve demo error
Boris,

You don't need the OpenSSL DLL's in order to run WEBSERVE.EXE. You probably got this error due to a OpenSSL DLL version conflict. If you don't have OpenSSL, then you will get the following message in webserve:

ERROR: HTTPS server cannot be started!
Unable to load LIBSSL32.DLL
Do you have the OpenSSL library installed?

With Version 3.1.08 this is indeed the case, but with Version 3.2.00, the program quits without a message or log!

You can test this for yourself, if you remove the OpenSSL DLLs from your path. I simply renamed them *.dlx for testing, and while the 3.1.08 program will still run just fine, the 3.2.00 program just disappears!

-- Andreas

---                                                                      ---
 Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
 415 Gute Street                     or: Andreas@DDPSoftware.com
 Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
 Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---
Re: Webserve demo error
Boris,

With Version 3.1.08 this is indeed the case, but with Version 3.2.00, the program quits without a message or log!

Let me qualify this a little bit. This happens if you compile with the default "Project.xpj" file, without debug information. If you change the project file to include debug information, the program works as expected,
even in Version 3.2.00!

I used Dependency Walker to figure out what exactly happens, but I wasn't very successful. Anyway, with "DEBUG = no", "WebServe.exe" Version 3.2.00 will not run without the OpenSSL DLLs installed! With "DEBUG = yes", it
will. I use Xbase++ 1.90.331 with all the officially available Hot Fixes
on Windows XP SP2.

I even switched the Xb2Net.DLL files -- running the "WebServe.exe" program that was compiled with Version 3.2.00 Xb2Net.DLL/LIB using the Version 3.1.08 Xb2Net.DLL file, and got the same problem, while running the other "WebServe.exe" program that was compiled with Version 3.1.08 Xb2Net.DLL/LIB using the Version 3.2.00 Xb2Net.DLL file, worked just fine!

So, it seems to be a problem with the executable, rather than with any of the DLL files. And I recompiled about a dozen times (with and without debug information).

I also just tried this on Windows 98SE, and there I'll get an XppFatal.log
when the program quits -- on Windows XP there is no error log created, though. But otherwise, the behavior is identical on Windows 98SE. I have attached the XppFatal.log for you.

Hope that helps,

-- Andreas

---                                                                      ---
 Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
 415 Gute Street                     or: Andreas@DDPSoftware.com
 Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
 Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---

This message includes the following attachments:

Re: Webserve demo error
Andreas Gehrs-Pahl <Andreas@DDPSoftware.com> wrote in
news:1ibeesnbuha92$.j9itajplaasr$.dlg@40tude.net:  

with "DEBUG = no", "WebServe.exe" Version 3.2.00 will not run without the OpenSSL DLLs installed! With "DEBUG = yes",
it will. I use Xbase++ 1.90.331 with all the officially available Hot
Fixes on Windows XP SP2.

I don't have OpenSSL installed and on my machine it works as expected regardless of the DEBUG setting in project.xpj (no runtime error).

I even switched the Xb2Net.DLL files -- running the "WebServe.exe"
program that was compiled with Version 3.2.00 Xb2Net.DLL/LIB using the
Version 3.1.08 Xb2Net.DLL file, and got the same problem, while
running the other "WebServe.exe" program that was compiled with
Version 3.1.08 Xb2Net.DLL/LIB using the Version 3.2.00 Xb2Net.DLL
file, worked just fine!  
So, it seems to be a problem with the executable, rather than with any
of the DLL files. And I recompiled about a dozen times (with and
without debug information).

This is evem more strange, I wonder if it's because you have some Xbase++ patches installed. I'm running the standard release version 1.90.331 and no patches.

Best regards,
Boris Borzic
-- news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
Re: Webserve demo error
Andreas Gehrs-Pahl wrote:

BTW, TCPView will NOT show the WebServ.exe program listening on either
port 80 or port 443! It will only show connections after/while they are established. I don't know for sure why, but that is what I see here!

Even with "show unconnected endpoints" enabled? That would be weird...  

Maybe there is a way to hide listening ports from TCPView, but I doubt it
would make much sense for Boris to do something like that.

Thomas
Re: Webserve demo error
Boris Borzic <ng-at-sqlexpress-dot-net> wrote in
news:Xns9A57540D51D4BSQLExpress@62.193.212.32:  

Jack Miller <jack@my-esa.com> wrote in
news:Xns9A56D0D6088E3jackmyesacom@ 62.193.212.32:
Did everything you suggested. Still get the "Cannot connect" message.
Do you have another machine where you can test this?
If you can't get this running, send me an email and we will set up a
webex session so I can connect to your machine to figure out what the
problem is.  
Best regards,
Boris Borzic

OK. Finally got it running! Added the debugger info, and it ran just fine!

Now I need to play with it a bit so I can ensure it will run on my client's machines.

Thanks to all for the help. I will stay in touch in this thread.

Jack Miller
Re: Webserve demo error
Thomas,

Even with "show unconnected endpoints" enabled? That would be weird...  

Yes, exactly!

Maybe there is a way to hide listening ports from TCPView, but I doubt it
would make much sense for Boris to do something like that.

I believe the reason is that Xn2Net uses event-driven sockets, connecting
to "0.0.0.0:80" and "0.0.0.0:443", which will not show up in "TCPView.exe".
But you can see the process with "TDIMon.exe". And in "TCPView.exe" you can see the "WebServe.exe" program if it has an active connection on the selected data port.

And of course, Zone Alarm and similar firewall programs will notice the
initial attempt to set up the event-driven sockets, at which point one could disallow the program to proceed with acting as a server.

-- Andreas

---                                                                      ---
 Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
 415 Gute Street                     or: Andreas@DDPSoftware.com
 Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
 Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---
Re: Webserve demo error
Boris,

I don't have OpenSSL installed and on my machine it works as expected regardless of the DEBUG setting in project.xpj (no runtime error).

Are you sure that you use the actual files that are in the demo zip file?

This is evem more strange, I wonder if it's because you have some Xbase++ patches installed. I'm running the standard release version 1.90.331 and no patches.

Just to be sure, I have compiled and run it with the default 1.90.331 files
and get the exact same results.

Apparently there are some timing issues -- didn't the XppFatal Log file give any clue at all?

Anyway, at least it helped Jack to get it running after compiling with debug info. I don't have any problems with it in my applications, so I'm
not too concerned that the demo isn't working, but you might want to look
into this, as it seems to be an issue for others, too.

-- Andreas

---                                                                      ---
 Andreas Gehrs-Pahl              E-Mail: GPahl@CharterMI.net
 415 Gute Street                     or: Andreas@DDPSoftware.com
 Owosso, MI 48867-4410               or: Andreas@Aerospace-History.net
 Tel: (989) 723-9927           Web Site: http://www.Aerospace-History.net
---                                                                      ---