I am working on a project that requires creating a windows service that consumes a ASP.Net Web Service periodically. The web service polls XML documents, parses them, and stores the persistent data in a db (Sql Server 08). This isn't my preference for the design but work with me, I'm not the boss lol =P The Windows Service uses asynchronous threads to consume the web service for polling different documents based on a timer. So far, if only one thread is active, then the service is consumed appropriately and the db has the data required. Once I introduce more threads then everything falls apart. I am brand new to programming windows services so even debugging (i.e attaching to a process) is new to me. I figure it is some type of race condition or synchronization issue. Any help or input would be great. Note: No records are entered into the db with this version of the code.
Answers
Know the answer? Post it. Somebody with the same question will find it here.