[SOLVED] fcl-web Duplicate name Lazarus 1.8.0 lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Mladen · 2017-12-11 08:21 Hello, I am in need of some help. My project is HTTP Server application. After updating to Lazarus 1.8.0 (fpc 3.0.4) I have began to experience some strange behavior. When for example after sending the first request to my application I get a response without error. But after I have sent the same request a 2nd time I get an error with a message  " Duplicate name: A component named "FPMobile" already exists ". I have tried to create a new HTTP Server application with one module and one action that returns simple text and I still get the same error after 2nd request. I didn't and still don't have this issue with Lazarus 1.6.4 fpc 3.0.2. Thank you all! ---------------------------------------------------------------------- howardpc · 2017-12-11 09:12 In a similar message on the mailing list, M VanCanneyt wrote that you should set the TCustomHTTPModule descendant's Kind property to wkOneShot, so you could try that. ---------------------------------------------------------------------- nummer8 · 2017-12-11 09:42 Just to be sure. Did you set Application.LegacyRouting:= True So the application doesnot use the new routing system and handles the modules in the old fashioned way Jos ---------------------------------------------------------------------- molly · 2017-12-11 09:51 Oh, my. Thank you very much for that note nummer8. I still use legacy compiler/units for production and seem to have missed that completely . More information here. ---------------------------------------------------------------------- Mladen · 2017-12-11 09:56 Quote from: nummer8 on December 11, 2017, 10:42:24 am Application.LegacyRouting:= True This fixed the issue !!! Thank you so much!! ---------------------------------------------------------------------- PascalDragon · 2018-01-13 19:33 Quote from: Mladen on December 11, 2017, 09:21:03 amBut after I have sent the same request a 2nd time I get an error with a message  " Duplicate name: A component named "FPMobile" already exists ". Just for completeness sake: this is now fixed in trunk. See this bug report of mine as I had encountered the same problem.