Hi.
I'm having difficulty using a
System.Net.HttpWebRequest/Response from a multithreaded
c# windows service.
My service is creating several System.Threading.Timers at
startup and then binding them to a delegate method, which
does the actual web call.
The problem is: for some reason, the delegate only ever
fires once. After this all the timers appear to stop
working and the service just sits there and meekly doing
nothing...
If I try to do anything else from the delegate which
doesn't use the System.Net.HttpXXX classes then
everything works fine, and also if I cut and paste my
timer and delegate code to a windows or console
application and run it, then again everything works fine.
So it appears to be the combination of a windows service,
a threaded timer, and the System.Net.HttpXXX classes
thats causing the problem. Although why is beyond me!
Does anyone have an idea about what is causing this
problem? Successful responses will earn you ebntry into
my own personal hall of fame :-)
Thanks
Paul James