[SOLVED] Cannot open .pas file lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- egsuh · 2025-06-05 06:14 I have made a web application. I installed Lazarus 4.0, and tried to open the old CGI web server program. It's fine, and I can compile it without errors. But I cannot open one of the web module .pas file. When I try to open the .pas file, .lfm file is open. I cannot convert to the form (datamodule form). In the past, I had no problem. I changed the layout to "New" docked design. Windows Server 2019. ---------------------------------------------------------------------- Joanna · 2025-06-09 13:23 It’s a shame that nobody seems to know the answer. Were you able to find answer? ---------------------------------------------------------------------- Thaddy · 2025-06-09 14:22 Did you write the web application using Lazarus components? (The wrong way) or did you write it in pure FPC? (The right way) Using the FPC cgi examples do not have a problem. I just tested that with an old cgi project from 10 years ago: NO Laz components , plain object oriented  fpc. ---------------------------------------------------------------------- egsuh · 2025-06-11 03:51 QuoteWere you able to find answer? No.  Not yet. QuoteDid you write the web application using Lazarus components? (The wrong way) or did you write it in pure FPC? (The right way) I write using Lazarus components. I do not know how to write programs in pure FPC. I haven't any problem with the same project for long years --- possibly longer than 10 years. It matters only with Lazarus 4.0, and with Windows Server 2019, and WebModule only --- simple Datamodule components are fine. ---------------------------------------------------------------------- Joanna · 2025-06-11 04:44 I wish I could be more helpful Maybe you can make an experimental unit with the same components as your web module and create them in the initialization section. The data module really is just a form that is never visible at runtime. The componets you need can be in a plain unit without an lfm file. ---------------------------------------------------------------------- cdbc · 2025-06-11 05:43 Hi Zip the 2 offending files, upload the zip here and let us have a 'LookSee'  Regards Benny ---------------------------------------------------------------------- egsuh · 2025-06-11 05:48 Ha... ha.... weblaz was not installed !   Installing that package solved the problem. Joanna, thanks a lot for your comment --- gave me some idea. ---------------------------------------------------------------------- Joanna · 2025-06-11 08:22 Glad I could help just from talking a bit.  It is kind of strange how programs with missing packages can still compile. It just happened to me...