Hi,
I have a web-service that does the following:
It has a number(int) stored in the web config file(under appsettings
tag) so everytime you call that web method, it reads the config file,
increments the value by 1 and then returns the number as a string.
I had initially developed this on Win XP so when I did
http://localhost/nameofwebservice and then test the method using the
invoke button it worked fine(returning a different number each time by
incrementing the previous number by 1).
Then I moved over the web-service to a windows 2003 server. So now when
I do http://localhost/nameofwebservice on the server, and invoke the
method, it initially returns say 2, next time it returns 3 and the next
time it returns 3 again, then 4, then 4 again, then 5, then 5 again,
and so on. I don't know what the problem is since it still works fine
on the win XP.
I use lock(this) as the first line of code within the web-method so
that no two processes can be returned the same number.
Could someone please suggest what to do or what I might be doing wrong.
Thanks in advance,
Sumeet