Forum > Networking and Web Programming

[SOLVED] fcl-web Duplicate name Lazarus 1.8.0

(1/2) > >>

Mladen:
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:
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:
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:
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:

--- Quote from: nummer8 on December 11, 2017, 10:42:24 am ---
Application.LegacyRouting:= True


--- End quote ---

This fixed the issue !!!
Thank you so much!!

Navigation

[0] Message Index

[#] Next page

Go to full version