Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Problem Connect DataBase MSSQL
Wed, Jul 15 2015 11:59 AMPermanent Link

Pasquale

Web Pos srl

I have deploy project

http://www.mbspay.it/payplatform.html

when we insert user and password (Utente : test , Password : test) and click on sign It is reporting this issue that we attach to this

The DataBase is Microsoft Sql Server .

In the INTERNAL WEB SERVER function correctly the attachment hosting database.

The debugger of chrome write


http://www.mbspay.it/datasets?method=rows&dataset=PosUtenti&Utente=test

Failed to load resource: the server responded with a status of 404 (Not Found)



Attachments: errore.pdf
Wed, Jul 15 2015 3:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Pasquale,

<< Failed to load resource: the server responded with a status of 404 (Not
Found) >>

Answered via email, also.

What web server are you using with your deployed application ?

If you're not using the EWB Web Server and using something like IIS/Apache,
then you won't be able to host datasets directly using the same web server.
You'll have to use both: IIS/Apache for normal content and the EWB Web
Server for serving up datasets.

This means that you'll need to have the main web server using port 80, and
the EWB Web Server listening on port 8080, or whatever.  And, in the EWB Web
Server, you'll have to enable cross-origin resource sharing:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Configuring_Server

Under the "Content" tab, make sure that the "Enable Cross-Origin Resource
Sharing" option is checked.

So, what you'll end up with is a URL like this for EWB datasets:

http://www.mbspay.it:8080/datasets?method=rows&dataset=PosUtenti&Utente=test

You can enable the use of such URLs in your EWB application by modifying the
Database.BaseURL property:

http://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TDatabase&prop=BaseURL

and setting it to:

Database.BaseURL:='http://www.mbspay.it:8080/datasets';

in your main form's OnCreate event handler.

Tim Young
Elevate Software
www.elevatesoft.com
Image