You are not logged in.
sorry but I do not work anymore setuser authentication (). The error occurs in the subject 12002.
I also tried the example No. 4 :"Synopse OpenSource \ SQLite3 \ Samples \ 04 - HTTP Client-Server" and does not work.
It only works if I run both the client and the server at localhost
my code does not work
client
program Project04Client;
...
Server := 'terminal2008';
Form1.Database := TSQLite3HttpClient.Create(Server,'888',Form1.Model);
TSQLite3HttpClient(Form1.Database).SetUser('User','synopse');
Application.Run;
TSQLite3HttpClient(Form1.Database).SetUser('User','synopse');
Application.Run;
end.
server
unit Unit2;
...
procedure TForm1.FormCreate(Sender: TObject);
begin
Model := CreateSampleModel;
DB := TSQLRestServerDB.Create(Model,ChangeFileExt(paramstr(0),'.db3'),true);
DB.CreateMissingTables(0);
Server := TSQLite3HttpServer.Create('888',[DB]);
end;
Offline
Delphi XE2, error is
unit SynCrtSock;
function TWinHttpAPI.Request(const url, method: TSockData;
KeepAlive: cardinal; const InHeader, InData, InDataType: TSockData;
out OutHeader, OutData: TSockData): integer;
var aData, aDataEncoding, aAcceptEncoding, aURL: TSockData;
Bytes, DataLen, Read: DWORD;
i: integer;
begin
..
3802: result := InternalGetInfo32(HTTP_QUERY_STATUS_CODE);
...
Thread Start: Thread ID: 2644. Process Project04Client.exe (4332)
Process Start: C:\Users\Documents\Synopse OpenSource\SQLite3\Samples\04 - HTTP Client-Server\Project04Client.exe. Base Address: $00400000. Process Project04Client.exe (4332)
Module Load: Project04Client.exe. Has Debug Info. Base Address: $00400000. Process Project04Client.exe (4332)
Module Load: ntdll.dll. No Debug Info. Base Address: $776B0000. Process Project04Client.exe (4332)
Module Load: KERNEL32.dll. No Debug Info. Base Address: $76940000. Process Project04Client.exe (4332)
Module Load: KERNELBASE.dll. No Debug Info. Base Address: $76540000. Process Project04Client.exe (4332)
Module Load: OLEAUT32.dll. No Debug Info. Base Address: $76C80000. Process Project04Client.exe (4332)
Module Load: ole32.dll. No Debug Info. Base Address: $750B0000. Process Project04Client.exe (4332)
Module Load: msvcrt.dll. No Debug Info. Base Address: $766B0000. Process Project04Client.exe (4332)
Module Load: GDI32.dll. No Debug Info. Base Address: $76B00000. Process Project04Client.exe (4332)
Module Load: USER32.dll. No Debug Info. Base Address: $74E00000. Process Project04Client.exe (4332)
Module Load: ADVAPI32.dll. No Debug Info. Base Address: $764A0000. Process Project04Client.exe (4332)
Module Load: SECHOST.dll. No Debug Info. Base Address: $76470000. Process Project04Client.exe (4332)
Module Load: RPCRT4.dll. No Debug Info. Base Address: $76B90000. Process Project04Client.exe (4332)
Module Load: SspiCli.dll. No Debug Info. Base Address: $74D90000. Process Project04Client.exe (4332)
Module Load: CRYPTBASE.dll. No Debug Info. Base Address: $74D80000. Process Project04Client.exe (4332)
Module Load: LPK.dll. No Debug Info. Base Address: $77680000. Process Project04Client.exe (4332)
Module Load: USP10.dll. No Debug Info. Base Address: $76D50000. Process Project04Client.exe (4332)
Module Load: MSIMG32.dll. No Debug Info. Base Address: $74650000. Process Project04Client.exe (4332)
Module Load: VERSION.dll. No Debug Info. Base Address: $742F0000. Process Project04Client.exe (4332)
Module Load: COMCTL32.dll. No Debug Info. Base Address: $73DA0000. Process Project04Client.exe (4332)
Module Load: SHLWAPI.dll. No Debug Info. Base Address: $75050000. Process Project04Client.exe (4332)
Module Load: SHELL32.dll. No Debug Info. Base Address: $75220000. Process Project04Client.exe (4332)
Module Load: WINSPOOL.DRV. No Debug Info. Base Address: $74290000. Process Project04Client.exe (4332)
Module Load: WINHTTP.dll. No Debug Info. Base Address: $685A0000. Process Project04Client.exe (4332)
Module Load: webio.dll. No Debug Info. Base Address: $68610000. Process Project04Client.exe (4332)
Module Load: apphelp.dll. No Debug Info. Base Address: $73930000. Process Project04Client.exe (4332)
Module Load: NULL.dll. No Debug Info. Base Address: $72190000. Process Project04Client.exe (4332)
Module Load: USERENV.dll. No Debug Info. Base Address: $73110000. Process Project04Client.exe (4332)
Module Load: profapi.dll. No Debug Info. Base Address: $74B60000. Process Project04Client.exe (4332)
Module Load: MPR.dll. No Debug Info. Base Address: $72320000. Process Project04Client.exe (4332)
Module Load: IMM32.dll. No Debug Info. Base Address: $76040000. Process Project04Client.exe (4332)
Module Load: MSCTF.dll. No Debug Info. Base Address: $76130000. Process Project04Client.exe (4332)
Module Load: UxTheme.dll. No Debug Info. Base Address: $74180000. Process Project04Client.exe (4332)
Module Load: dwmapi.dll. No Debug Info. Base Address: $74160000. Process Project04Client.exe (4332)
Module Load: WTSAPI32.dll. No Debug Info. Base Address: $73200000. Process Project04Client.exe (4332)
Module Load: WINSTA.dll. No Debug Info. Base Address: $73240000. Process Project04Client.exe (4332)
Thread Start: Thread ID: 1752. Process Project04Client.exe (4332)
Thread Start: Thread ID: 3440. Process Project04Client.exe (4332)
Module Load: WS2_32.dll. No Debug Info. Base Address: $76D10000. Process Project04Client.exe (4332)
Module Load: NSI.dll. No Debug Info. Base Address: $74DF0000. Process Project04Client.exe (4332)
Module Load: CRYPTSP.dll. No Debug Info. Base Address: $74BB0000. Process Project04Client.exe (4332)
Module Load: CREDSSP.dll. No Debug Info. Base Address: $72770000. Process Project04Client.exe (4332)
Module Unload: CRYPTSP.dll. Process Project04Client.exe (4332)
Module Load: MSWSOCK.dll. No Debug Info. Base Address: $74A50000. Process Project04Client.exe (4332)
Module Load: WSHTCPIP.dll. No Debug Info. Base Address: $74870000. Process Project04Client.exe (4332)
Module Load: WSHIP6.dll. No Debug Info. Base Address: $74860000. Process Project04Client.exe (4332)
Module Load: DNSAPI.dll. No Debug Info. Base Address: $747E0000. Process Project04Client.exe (4332)
Thread Start: Thread ID: 1536. Process Project04Client.exe (4332)
Thread Start: Thread ID: 380. Process Project04Client.exe (4332)
Module Load: IPHLPAPI.DLL. No Debug Info. Base Address: $74BE0000. Process Project04Client.exe (4332)
Module Load: WINNSI.DLL. No Debug Info. Base Address: $74BD0000. Process Project04Client.exe (4332)
Module Load: rasadhlp.dll. No Debug Info. Base Address: $731B0000. Process Project04Client.exe (4332)
Module Load: fwpuclnt.dll. No Debug Info. Base Address: $72A70000. Process Project04Client.exe (4332)
Thread Start: Thread ID: 4656. Process Project04Client.exe (4332)
First chance exception at $7654B9BC. Exception class EOSError with message
'System Error. Code: 12152.
'.
Process Project04Client.exe (4332)
Offline
This is a WinINet / WinHTTP internal issue.
See http://msdn.microsoft.com/en-us/library … s.85).aspx
Sounds like a local FireWall / security issue.
Did you try to restart the computer?
Offline
the server is installed on a windows server 2008 machine and the client in win7 64-bit, in all its machines are disabled firewall.
I have tried to reverse the programs I put the server in my pc and the client to the server 2008 and it works, you have any ideas?
Offline
sorry but I did not run the server as Administrator of the machine
thanks corchi
Offline