YangNing Posted March 15, 2014 Share Posted March 15, 2014 I create a new Unigui application with Standalone server/ISAPI mode, and compile it without {define UNIGUI_VCL},then I release the dll to IIS. When I open browser to load the url every first time,I get the error: Invalid session or session Timeout. Restart application When I click Restart application, it work well. the log file: beautyman: 0000143C: 11:49:24 []:Server Inited.beautyman: 0000143C: 11:49:24 [HttpExtensionProc]:EUniSessionException : Invalid session or session Timeout. I get the error when open the browser first time, if I don't close the browser, reload the url, it work well. When I close the browser,and open the browser again,I get the error again. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 15, 2014 Administrators Share Posted March 15, 2014 What is the URL you call to start your isapi app? Link to comment Share on other sites More sharing options...
YangNing Posted March 15, 2014 Author Share Posted March 15, 2014 What is the URL you call to start your isapi app? http://127.0.0.1 But I have added the dll to the default docs. Link to comment Share on other sites More sharing options...
YangNing Posted March 15, 2014 Author Share Posted March 15, 2014 I found a new problem. I can access http://127.0.0.1/beuatyman.dll, but I cannot access http://127.0.0.1 directly. I have added beautyman.dll to the default docs. When I access http://127.0.0.1,I get the error: Invalid session or session Timeout. Restart application Click Restart application, it work well. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 15, 2014 Administrators Share Posted March 15, 2014 ISAPI Dll file can not be set as default document. It is not compatible with uniGUI. You need to start your app with standard syntax. Link to comment Share on other sites More sharing options...
ZigZig Posted March 15, 2014 Share Posted March 15, 2014 You can use an user-friendly URL (ie : http://www.mydomain.com without /myISAPI.dll) if you install "URL Rewrite" extension on IIS (see http://www.iis.net/downloads/microsoft/url-rewrite). 1 Link to comment Share on other sites More sharing options...
Oliver Morsch Posted March 15, 2014 Share Posted March 15, 2014 ISAPI Dll file can not be set as default document. It is not compatible with uniGUI. You need to start your app with standard syntax. What do I make "wrong" (that it works for me) ? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 15, 2014 Administrators Share Posted March 15, 2014 It can only be achieved using URL Rewriting techniques. Link to comment Share on other sites More sharing options...
Recommended Posts