PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Problem with deployin to a PCSCloud account
Problem with deployin to a PCSCloud account
Iniciado por Simon Phillips, nov., 10 2020 5:10 PM - Sem resposta
Publicado em novembro, 10 2020 - 5:10 PM
Hi

Please bear with me as I am just starting with WebDev.

This is the main problem I am having.

I have just started the WebDev app and have purchased a site on the PCSCloud server. I can deploy it fine, however, if I try to access any files (all HFSQL C/S) I get an error. The top of the error is:

The <PageVisits> data source is not initialized.
- If it is a data file, the file was not found in the <C:\My Sites\OtterReg\FyFu.wdd> analysis or it was not described by HDeclare/HDeclareExternal.
- If it is a query or a view, the execution may have failed.
To retrieve the corresponding error, check the result of HExecuteQuery/HExecuteSQLQuery/HCreateView.
WL call:
Process of 'Initializing of PAGE_Home (server) (PAGETPL_Computers template)' (PAGE_Home), line 78
'HReadSeekFirst' function, syntax 2

All I am doing at this point is:

HReadFirst(PageVisits,PageVisitsID)

I have since removed all access to files to stop it crashing.

If I run this on my own system, which refers to the files as being on the PCSCloud server, it works fine and I can see that the files on the server are updated ok. But if I deploy the site and run it from the server it give the error.

I have tried using HDeclare() but this makes no difference.

I thought that setting the connection in the analysis would have worked when on the site as when running on my PC but referring to the file on the PCSCloud server.

Any ideas where I could be going wrong?

Thanks
Simon