Jump to content
uniGUI Discussion Forums

Search the Community

Showing results for tags 'ISAPI'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • uniGUI 1.x
    • Beta Releases
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 20 results

  1. Kattes

    Problem With ISAPI

    Hello, I am a bit clueless with a big problem I need to solve ASAP. The current situation is as followed. I am running on a Windows 2016 server two uniGui Applications. One works as a non visual DB server, which feeds an external PHP Shop Application with information like articles , prices, etc. The other one is a Backend Application, which handles all the articles from the shop. So this behaves more like the standard uniGui Application we all know, using all the nice uniGui visual components we all love. But my problem comes from the non visual application, which sometimes is not reachable, which means API calls from the PHP application do not get any response. Main part of this application is the Methode "UniGUIServerModuleHTTPCommand", which looks like this: procedure TUniServerModule.UniGUIServerModuleHTTPCommand(ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); var sJSON, sParam, sRequest, s : string; i : integer; bValidRequest : boolean; begin // Examples of Supported APIs: // http://localhost:8077/v1/prom?ID=47 >> Get Details of selected event with the ID 47 // http://localhost:8077/v1/Prom/CheckAvail >> Check if server is online // http://localhost:8077/v1/Proms >> Get List of current events bValidRequest := false; if pos('/v1', ARequestInfo.URI) = 1 then // API Call found !! begin AResponseInfo.ResponseNo := 200; Handled := True; if ARequestInfo.AuthExists and (ARequestInfo.AuthPassword='wshgdaizuddsfrtG12') and (ARequestInfo.AuthUsername='XCloud') then begin sRequest := Uppercase(ARequestInfo.URI); if sRequest = Uppercase('/v1/Prom/CheckAvail') then // Checking the API accessibility during the purchase process begin bValidRequest := true; sJSON := '{"status": "online"}'; AResponseInfo.ContentText := sJSON; LogPayServer('HTTP Request "CheckAvail"', sJSON); end; if sRequest=Uppercase('/v1/Proms') then // Returns a list of all currently active proms in JSON format. begin bValidRequest := true; sJSON := GetEventsAsJSON; LogPayServer('HTTP Request "Proms"', sJSON); AResponseInfo.ContentText := sJSON; end; if sRequest=Uppercase('/v1/Prom/OrderConfirmed') then // Called after the sales process has been completed begin sJSON := ARequestInfo.RawHeaders.Values['OrderInfo']; // Process received order information LogPayServer('HTTP Request "OrderConfirmed"', sJSON); if AddJsonOrderInformationToDB2(sJSON) then begin LogPayServer('HTTP Request "OrderConfirmed"', 'bValidRequest=true'); bValidRequest := true; AResponseInfo.ContentText := '{"status": "processed"}'; // if everything is OK, than return follwing: end else LogPayServer('HTTP Request "OrderConfirmed"', 'bValidRequest=false'); end; if sRequest=Uppercase('/v1/Prom') then begin sParam := ARequestInfo.Params.Values['VoucherVal']; // Request to check the value of the given voucher if sParam <>'' then begin bValidRequest := true; // Get from DB the value of the given voucher and return it to JSON sJSON := '{"voucher value": '+GetVoucherValue(ZConnectionServerModule, sParam)+'}'; AResponseInfo.ContentText := sJSON; LogPayServer('HTTP Request "VoucherVal" ('+sParam+')', sJSON); end; sParam := ARequestInfo.Params.Values['Id']; // Returns information of the event, which was selected via its Id if sParam <>'' then begin bValidRequest := true; sJSON := GetEventDetailsJSON(sParam); AResponseInfo.ContentText := sJSON; LogPayServer('HTTP Request "Prom?Id=?"', sJSON); end; end; if not bValidRequest then begin AResponseInfo.ContentText := '<html>Not supported API-Call; Please check API documentation!</html>'; LogPayServer('HTTP Request "API ERROR"', ARequestInfo.URI); end; end else begin AResponseInfo.ContentText := '<html>Wrong or missing PW; Please use Basic Auth!</html>'; LogPayServer('HTTP Request "Invalid Caller"', 'PW / Auth wrong'); end; end; end; The Internalisation Methode is also simple and straightforward: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin sHTML1 := tStringList.Create; sHTML2 := tStringList.Create; with ZConnectionServerModule do begin Connected := False; LibraryLocation := StartPath+'files\dll\libmysql.dll'; Protocol := 'mysql'; HostName := 'localhost'; Port := 3306; Database := 'xxxxx'; User := 'root'; Password := '-----'; Connected := true; end; LogPayServer('UniGUIServerModuleCreate','Server V'+FileVersionGet(StartPath+'AbiPaymentServer.dll')+' Created and running'); end; I am mentioning it here because as you can see it also uses a Log-Call, which writes information to a log table within my MySQL database and I can find randomly entries in the log, which show me that the application was restarted. At the moment the traffic handled by this Application is very low (less than 10 API calls per hour). Nevertheless I have the problem that the Application does not response and is not reachable sometimes. This is something I have not seen as long as I used it as standalone Application. Any comments or help are more than welcome!
  2. cid

    Hyper server modo ISAPI

    Hola, Hemos activado el hyper_server en modo ISAPI y no somos capaces de acceder al monitor del mismo. La URL que usamos desde nuestro servidor es: http://localhost/server ¿No es correcto? Un saludo
  3. Amohimeed

    Full Step of deployment

    Hi I need a clear step by step instructions to do the following: 1- Create ISAPI web page and run it on mylocal host. 2- a list of ISAPI hosting companies. 3- How to deploy my ISAPI on my hosting space. And finally How to MIX HTML design with MYGUI components such as Buttons .... Thanks
  4. zarei2000

    FastReport Export PDF

    Hello Friends... I am developing an UniGUI application that uses FastReport (frxReport & frxPDFExport components). The ISAPI App work properly in IIS 7.5 (Windows 7); But when I deployed my App on IIS 10 (Windows 10), when the App want to Exporting PDF, fully stopping working (Without any Exception). Exception is in this line: frxRreport.ExportPDF(frxPDFExport); This issue solve when I Using FastReport version 4; But I need higher version in my project (5 or 6). Notice: I give Full Permission to IIS directoy for IIS_USRS & IUSR; So PDF file created in Cache directory; But without any content (file size is 1 KB) and file still is in use.
  5. Sistema Fenix

    Setting the date format VCL vs ISAPI

    Hello everybody! Please, I'm racking my brains to solve the date format. At the date VCL is exactly as I want, but when I compile and publish in IIS format is completely different. Have I set the regional settings of the server, but to no avail. Thanks for your help.
  6. Hi, 1. I compile the most basic uniGUI application (this means, I create a new uniGUI application with the Application Wizard and choose ISAPI module) 2. I transfer by ftp the compiled project1.dll file to my wwwroot on Azure 3. I try to connect with my webbrowser: https://xxx(mypath).azurewebsites.net/project1.dll I expect to see my compiled MainForm in my browser, the only thing I see is an empty white webbrowser with the message : loading... What am I doing wrong ? What other files have to be transferred ? Thank you in advance. cdev
  7. Hi, I'm having trouble with my isapi application that is going down when total/active threads reaches it's max like the attached image. What does make it go high and freeze application? Is there any documentation how to configure the ThreadPoolSize? All the components that I'm using in the project; - ADOComponents - SQL Server 2005/2008 (depends the customer) - Report Tools QuickReport 5.05.1 and Rave Reports 10.0 - TClientDataSet
  8. Astrolab

    Failed to delete tab at index 0

    professional 1.0.01425 app working good when working as standalone but when i change it to isapi dll fire this exception: Failed to delete tab at index 0
  9. Sebastiao Purcini

    Server Module - ISAPIOptions

    Hi, Can someone explain what is the property ISAPIOptions -> AsyncMode, in Server Module ? I had a problem with ExportToFilter(quick report), then checking option to 'true', I solved this.
  10. jcapitan

    UniDAC + ISAPI project , demo

    Hi everyone, i need your experience in this component. I have compiled a project with uniDAC in standalone server and working ok, but, when the project is uniDAC in ISAPI Module i have the error: "GDS function is not linked" I used firebird, delphi xe10.2 and uniDAC 7.0.2. I will be grateful if someone can give me information or an example of how to make it work. thanks in advance.
  11. markokas

    Apache deploy isapi - crash

    Hi all, We try to deploy ISAPI dll to Apache PHP Version 5.6.30. On MainModule is placed AdoConnection and connected Queries components to access MS SQL database. From log files I can see that application crash (access violation) just after AdoConnection is open. Of course on server module AutoCoInitialize is set to True. In the same time app run on IIS or standalone server without any problem, but on Apache is crash. Anybody has idea what could be wrong? Development environment: UniGui: Delphi Xe2 DB: MSSQL
  12. chrisjohn82

    Convert service to ISAPI

    Hi, I currently have a project that i created as a service, is there a easy way to convert the project to a ISAPI module? Best regards Christian J
  13. Hello, how could I simply change from Standalone version to ISAPI modulu without moving the code from project to project.
  14. EmpresaMix

    Erro na Publicação ISAPI IIS 8

    Publiquei a DLL no Meu Computador Funcionou ok. No servidor Erro 500.19 Mudei as permissões do usuário e agora não dá erro mas fica carregando .... e não mostra nada depois de um tempo TimeOut. O Servidor está funcionando ok, tenho outro site, mas não em ISAPI. http://www.empresamix.ws/UNIGUI/web_aluno.dll
  15. Sistema Fenix

    Isapi IIS restarting with frequency

    Hi Fashard, I have this problem a long time, but this latest version is more frequent. fenix14.dll: 00002594: 08:19:26 []:UniErrorException : Event:click, Object: O1547 not found in session list. It could be timed out, refresh page and try again : Addr: $00000000 fenix14.dll: 00002124: 08:20:00 []:>--------------------------------------------------------------< fenix14.dll: 00002124: 08:20:00 []:Starting Server. Module Handle: 0000000002710000 fenix14.dll: 00002124: 08:20:00 [TUniServerModule]:Server First Init. fenix14.dll: 00002124: 08:20:00 [TUniServerModule]:Erasing Cache Folder... fenix14.dll: 00002124: 08:20:00 [TUniServerModule]:Cache Folder Erased. <3158> Files deleted. fenix14.dll: 00002124: 08:20:00 [TUniServerModule]:HTTP Server not Started! fenix14.dll: 00002124: 08:20:00 []:Server Started. Module Handle: 0000000002710000 fenix14.dll: 00001AC4: 10:28:37 []:UniErrorException : Event:click, Object: O3BD9 not found in session list. It could be timed out, refresh page and try again : Addr: $00000000 fenix14.dll: 00002F90: 10:29:41 []:>--------------------------------------------------------------< fenix14.dll: 00002F90: 10:29:41 []:Starting Server. Module Handle: 0000000002280000 fenix14.dll: 00002F90: 10:29:41 [TUniServerModule]:Server First Init. fenix14.dll: 00002F90: 10:29:41 [TUniServerModule]:Erasing Cache Folder... fenix14.dll: 00002F90: 10:29:42 [TUniServerModule]:Cache Folder Erased. <4892> Files deleted. fenix14.dll: 00002F90: 10:29:42 [TUniServerModule]:HTTP Server not Started! fenix14.dll: 00002F90: 10:29:42 []:Server Started. Module Handle: 0000000002280000 fenix14.dll: 00002E04: 11:18:34 [HttpExtensionProc[]]:EUniSessionException : Sessão expirada ou tempo de sessão esgotado. : Addr: $026A5FE3 fenix14.dll: 00001164: 11:26:21 []:>--------------------------------------------------------------< fenix14.dll: 00001164: 11:26:21 []:Starting Server. Module Handle: 0000000002910000 fenix14.dll: 00001164: 11:26:21 [TUniServerModule]:Server First Init. fenix14.dll: 00001164: 11:26:21 [TUniServerModule]:Erasing Cache Folder... fenix14.dll: 00001164: 11:26:22 [TUniServerModule]:Cache Folder Erased. <4228> Files deleted. fenix14.dll: 00001164: 11:26:22 [TUniServerModule]:HTTP Server not Started! fenix14.dll: 00001164: 11:26:22 []:Server Started. Module Handle: 0000000002910000 fenix14.dll: 00002F2C: 12:38:34 []:>--------------------------------------------------------------< fenix14.dll: 00002F2C: 12:38:34 []:Starting Server. Module Handle: 00000000027E0000 fenix14.dll: 00002F2C: 12:38:35 [TUniServerModule]:Server First Init. fenix14.dll: 00002F2C: 12:38:35 [TUniServerModule]:Erasing Cache Folder... fenix14.dll: 00002F2C: 12:38:35 [TUniServerModule]:Cache Folder Erased. <1278> Files deleted. fenix14.dll: 00002F2C: 12:38:35 [TUniServerModule]:HTTP Server not Started! fenix14.dll: 00002F2C: 12:38:35 []:Server Started. Module Handle: 00000000027E0000 fenix14.dll: 00002E38: 13:37:08 []:UniErrorException : Event:keydown, Object: O17CB not found in session list. It could be timed out, refresh page and try again : Addr: $00000000 fenix14.dll: 00002E64: 13:40:43 []:>--------------------------------------------------------------< fenix14.dll: 00002E64: 13:40:43 []:Starting Server. Module Handle: 0000000002710000 fenix14.dll: 00002E64: 13:40:43 [TUniServerModule]:Server First Init. fenix14.dll: 00002E64: 13:40:43 [TUniServerModule]:Erasing Cache Folder... fenix14.dll: 00002E64: 13:40:43 [TUniServerModule]:Cache Folder Erased. <3741> Files deleted. fenix14.dll: 00002E64: 13:40:43 [TUniServerModule]:HTTP Server not Started! fenix14.dll: 00002E64: 13:40:43 []:Server Started. Module Handle: 0000000002710000 Log error IIS Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x52157ba0 Faulting module name: unknown, version:, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x00000000 Faulting process id: 0x2504 Faulting application start time: 0x01d1971adce7901f Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe Faulting module path: unknown Report Id: 05081776-0316-11e6-80bd-00259047b90c Faulting package full name: Faulting package-relative application ID: Best regards
  16. skafy

    ISAPI module on IIS 7.5 (Error)

    Hello, I've created Standalone Application at the start and then I tranformed it into a ISAPI module (comment line for GUI in project source) witch I've put on IIS 7.5. When I call .dll first form shows as it should, but when I click some data on DBGrid it should open new form with details of that record. In standalone app works fine, but as ISAPI modulu it doesn't. I've checked log and there is this. Workflow: 00001E24: 07:23:21 []:-------------------------------------------------------------- Workflow: 00001E24: 07:23:21 []:Starting Server. Module Handle: 00000000022A0000 Workflow.dll: 00001E24: 07:23:21 [TUniServerModule]:Server First Init. Workflow.dll: 00001E24: 07:23:21 [TUniServerModule]:Erasing Cache Folder... Workflow.dll: 00001E24: 07:23:21 [TUniServerModule]:Cache Folder Erased. <0> Files deleted. Workflow.dll: 00001E24: 07:23:21 [TUniServerModule]:HTTP Server Started. Workflow: 00001E24: 07:23:21 []:Server Started. Module Handle: 00000000022A0000 Does this error tell you enything what I am doing wrong? Best regards.
  17. Hello UniGuys, I have some questions about the configuration of a unigui isapi modul in IIS (7.5, or 8.0). in the log of my deployed dll i find entries like this: adm: 00002FD0: 10:25:13 [HttpExtensionProc[]]:EUniSessionException : Invalid session or session Timeout. : Addr: $01EFDC44 adm: 00000DFC: 10:36:41 [HttpExtensionProc[]]:EUniSessionException : Invalid session or session Timeout. : Addr: $01EFDC44 i set my Application pool in IIS with following settings (Process Model): idle Timeout (minutes) -> 2 Idle Timeout Action -> Terminate so after 2 minutes nobody do a request to this process it will be terminated. In live envirement this will be of course a longer period . Recycling Condition - Fixed Intervalls: Regular time intervals in minutes -> 480 So all 480 Minutes all processes of this application pool gets reloaded. i set my Servermodule Settings to following: SessionTimeout -> 600000 soRestartSessionOnTimeout -> true I assume that if a Worker process on the IIS get terminated, that will also kill the unigui session. if a user do some action after the worker process is terminated, a new worker process is created who doesn't now anything about the unigui session. Right? Whats about configuring the application pool as a webgarden? That means that the isapi module is loaded in serveral worker processes parallel and the IIS decides which process is used for a request. So you see, i am a bit confused about the rigth way to deploy a unigui isapi dll. And i definitly know less about the Session model in unigui. Maybe somebody can me explain me how i should go to get optimal settings for unigui session and for IIS worker process?
  18. rsanford

    Azure deployment

    Could anyone that has successfully deployed a uniGUI ISAPI dll to Azure please provide the steps and example that you used to create the package and service definition schema? I'd like to deploy my app to an Azure web role instead of VM but having a difficult time doing it. Thanks! Robert
  19. Hi Forum! This is the case: A HTML page with ASP define variables, Session variables. code: <html> <% Dim urlname urlName = "localhost:/cgi-bin/mydll.dll" Session("virtualSnipper") = MySnipperFunction(Session.id) %> <head> <title>My Title</title> </head> <body> <iframe name="framei" id="framei" frameborder="0" width="100%" height="98%" src="<%=urlName %>"> </iframe> </body> </html> When mydll.dll (an unigui web application) is called, the session has defined "virtualSnipper" value. Hoy can read that value into my unigui application and where (datamodule, mainform, dpr) ? is it possible?.. Thanks
  20. eduardo.junqueira

    URL Parameter x ISAPI - HELP

    When I run the ISAPI mode parameter URL does not work, how can I solve this? Please ajuder me with solution.