Delphi XE2 Indy Error

I have written a webservice in Delphi XE2 using Indy IDHttpWebBrokerBridge. The program has been developed as an unattended running one. It constantly pops up with errors like Elisterror, Connection reset by peer and Software caused connection abort. I tried putting an exception handler in the application events and the Idhttpwebbrokerbridge. still it comes up with that error. Can somebody please help.
sritharanbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rinfoCommented:
Unless you submit some code how is one supposed to know what could be wrong.
Ideally in such case it is better to put these two files along with the project source files.
IdHTTPWebBrokerBridge.pas
IdCompilerDefines.inc
Check whether IdCompilerDefines.inc is accessible to project or not.
Better still copy this two files in the project source directory and try again
0
sritharanbAuthor Commented:
Hi,

I have attached the source files. If you could help me point in the right direction, would be great. thanks for any help in advance.
datasnap.zip
0
rinfoCommented:
I have compiled the codes in XE2.
I understand you have done the same successfully because you have mentioned about the error its generating on running.
It create and start  server all right which i understand will be listening to the assigned port alright.
But what next.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

sritharanbAuthor Commented:
While it is running.. once in a while..(mostly when the client is a .net website) is generates errors in the webservice program like
1. Connection Reset by peer
2. Elist error generated

I read in few articles that since indy is multithreated these errors do happen and if we do not put an OnException event these error popup wont show up but it does for me.
I dont know from where are these errors coming from and how to suppress them.

Any help is appreciated.
0
rinfoCommented:
The code you are posting is an example code of an article done on Emba.Dev.Network.
I suggest you read this article , download its source code , try as per the example and i am sure
you would be able to short it out.
The link for this article is
http://edn.embarcadero.com/article/41305
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sritharanbAuthor Commented:
I will try this out and let you know if it works.
0
rinfoCommented:
Hello
I have tested this example and it works perfectly.
What i understand is you must have tried to compile enclosed source unit as it is and run it.
And it will not work.
Just do as the article says step by step.
Important is first screen where you should click get free port and it should fill a port no there
which will be hard coded in the generated module and units.
Its just a matter of click and all the files including html, js and css will be created itself.
I am sure you can understand it quite well if you follow the instruction properly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.