I have an issue with StreamWriter class. Basically, in an application running as a web service, I need to write info into a log file. When I send 2 web service calls simutanouly, the entries created in the log file are not correctly written. For example, in call #1, ID 1 - xyz is to be written to the log file. In call #2, ID 2 - abc is to be written. When I viewed the log, it shows ID 1 - xyz & ID 1- abc. Looks like there's some memory data being shared and mixed together, even though it's totally 2 seperate web service calls. From my understanding, each call (i.e. each will be process under a different application instance) should have its own set of memory allocation for data processing...
If I am to make this application as a Console Application, it looks like everything is processed correctly.
Please help. Thanks.
View Complete Post