Why this error

I have a code that when started from inside delphi ide works fine

But when starting the same it looks like this

In both cases my code does what its supposed to do but it it is enoying with this "SERVER ERROR" showing

Can you isolate and send a sample source project with which we can reproduce this?
I assume, but it's guesswork this is a TWebPageControl and TWebLoginPanel?
I couldn't see an issue here when using a TWebLoginPanel on a TWebPageControl.