Delphinus icon indicating copy to clipboard operation
Delphinus copied to clipboard

WebSetup: Crash at startup with EOleException

Open swanitzek opened this issue 5 years ago • 3 comments

The Websetup of the current Master-Branch is crashing at startup with the following error (the message is in german because a german operating system is in use):

Anwendungsfehler Exception EOleException in Modul DelphinusWebSetup.exe bei 002ACAFF.

Im Support des sicheren Channels ist ein Fehler aufgetreten.

I opened the DelphinusWebSetup.dproj and debugged the project with Delphi 10.3 Rio and tracked down the exception to DN.HttpClient.WinHttp:156:

FRequest.Send('');

At the time of the exception the variable "AUrl" which is displayed in the "Local variables" window of the IDE shows plenty of chinese characters (it's a corrupted string).

-- OS: Microsoft Windows 7 Enterprise 6.1.7601 Service Pack 1 Build 7601 Hotfix(es):
[01]: KB2849697 [02]: KB2849697 [03]: KB2849696 [04]: KB2849696 [05]: KB2841134 [06]: KB2841134 [07]: KB2670838 [08]: KB2830477 [09]: KB2592687 [10]: KB2479943 [11]: KB2491683 [12]: KB2506014 [13]: KB2506212 [14]: KB2506928 [15]: KB2509553 [16]: KB2511455 [17]: KB2515325 [18]: KB2532531 [19]: KB2533552 [20]: KB2533623 [21]: KB2534111 [22]: KB2536275 [23]: KB2536276 [24]: KB2544893 [25]: KB2545698 [26]: KB2547666 [27]: KB2552343 [28]: KB2560656 [29]: KB2563227 [30]: KB2564958 [31]: KB2570947 [32]: KB2574819 [33]: KB2579686 [34]: KB2584146 [35]: KB2585542 [36]: KB2603229 [37]: KB2604115 [38]: KB2619339 [39]: KB2620704 [40]: KB2621440 [41]: KB2631813 [42]: KB2639308 [43]: KB2640148 [44]: KB2647753 [45]: KB2653956 [46]: KB2654428 [47]: KB2656356 [48]: KB2660075 [49]: KB2667402 [50]: KB2676562 [51]: KB2685811 [52]: KB2685813 [53]: KB2685939 [54]: KB2690533 [55]: KB2698365 [56]: KB2705219 [57]: KB2709630 [58]: KB2712808 [59]: KB2718704 [60]: KB2719857 [61]: KB2726535 [62]: KB2727528 [63]: KB2729094 [64]: KB2729452 [65]: KB2731771 [66]: KB2732059 [67]: KB2732487 [68]: KB2732500 [69]: KB2736422 [70]: KB2742599 [71]: KB2743555 [72]: KB2750841 [73]: KB2758857 [74]: KB2761217 [75]: KB2763523 [76]: KB2770660 [77]: KB2773072 [78]: KB2785220 [79]: KB2786081 [80]: KB2789645 [81]: KB2791765 [82]: KB2799926 [83]: KB2800095 [84]: KB2803821 [85]: KB2807986 [86]: KB2808679 [87]: KB2813347 [88]: KB2813430 [89]: KB2820331 [90]: KB2832414 [91]: KB2834140 [92]: KB2835361 [93]: KB2839894 [94]: KB2840149 [95]: KB2840631 [96]: KB2843630 [97]: KB2846960 [98]: KB2847077 [99]: KB2847311 [100]: KB2847927 [101]: KB2852386 [102]: KB2853952 [103]: KB2857650 [104]: KB2861191 [105]: KB2861698 [106]: KB2861855 [107]: KB2862152 [108]: KB2862330 [109]: KB2862335 [110]: KB2862966 [111]: KB2862973 [112]: KB2864058 [113]: KB2864202 [114]: KB2868038 [115]: KB2868116 [116]: KB2868626 [117]: KB2871997 [118]: KB2872339 [119]: KB2882822 [120]: KB2884256 [121]: KB2887069 [122]: KB2888049 [123]: KB2891804 [124]: KB2892074 [125]: KB2893294 [126]: KB2893519 [127]: KB2894844 [128]: KB2900986 [129]: KB2908783 [130]: KB2909210 [131]: KB2911501 [132]: KB2912390 [133]: KB2913152 [134]: KB2913751 [135]: KB2918077 [136]: KB2918614 [137]: KB2919469 [138]: KB2922229 [139]: KB2923545 [140]: KB2926765 [141]: KB2928562 [142]: KB2929437 [143]: KB2929733 [144]: KB2929755 [145]: KB2931356 [146]: KB2937610 [147]: KB2939576 [148]: KB2943357 [149]: KB2952664 [150]: KB2957189 [151]: KB2957503 [152]: KB2957509 [153]: KB2961072 [154]: KB2963952 [155]: KB2965788 [156]: KB2966583 [157]: KB2968294 [158]: KB2970228 [159]: KB2971850 [160]: KB2972100 [161]: KB2972211 [162]: KB2972280 [163]: KB2973112 [164]: KB2973201 [165]: KB2973337 [166]: KB2973351 [167]: KB2976627 [168]: KB2976897 [169]: KB2977292 [170]: KB2977629 [171]: KB2977728 [172]: KB2978092 [173]: KB2978120 [174]: KB2978668 [175]: KB2978742 [176]: KB2979570 [177]: KB2980245 [178]: KB2981580 [179]: KB2982378 [180]: KB2984972 [181]: KB2984976 [182]: KB2985461 [183]: KB2991963 [184]: KB2992611 [185]: KB2993651 [186]: KB2993958 [187]: KB2994023 [188]: KB2998527 [189]: KB3000483 [190]: KB3001554 [191]: KB3002885 [192]: KB3003057 [193]: KB3003743 [194]: KB3004361 [195]: KB3004375 [196]: KB3004394 [197]: KB3005607 [198]: KB3006121 [199]: KB3006226 [200]: KB3006625 [201]: KB3008627 [202]: KB3009736 [203]: KB3010788 [204]: KB3011780 [205]: KB3013410 [206]: KB3013455 [207]: KB3014406 [208]: KB3019215 [209]: KB3020338 [210]: KB3020388 [211]: KB3021674 [212]: KB3021917 [213]: KB3021952 [214]: KB3022777 [215]: KB3023562 [216]: KB3023607 [217]: KB3029944 [218]: KB3031432 [219]: KB3034196 [220]: KB976002 [221]: KB976902 [222]: KB982018

swanitzek avatar Nov 28 '18 11:11 swanitzek

This is a duplicate of #64. Probably Delphinus could check that registry key before using WinHTTP and display a warning / offer to enable TLS 1.2+.

micha137 avatar Nov 28 '18 13:11 micha137

ahhhhhh yes, that's something i should definetly look at. It affects not just the websetup!

Memnarch avatar Nov 28 '18 13:11 Memnarch

seems (when the appropiate KB is installed) that i can set Option WinHttpRequestOption_SecureProtocols to enable TLS 1.2 instead of manipulating the registry. Will investigate. https://forums.iis.net/t/1220682.aspx?ServerXMLHTTP+6+0+WinHttpRequest+connecting+to+TLS+1+2+server

Memnarch avatar Nov 28 '18 13:11 Memnarch