I have been Looking into a weird issue Recently, looking for some answers
In an Asp.Net 4.0 Web Application, i have a method which accepts object as an input parameter, Now i am Running a Load Test on the Below code with 10 Users, While I do so I get the if condition satisfied in few cases which should not be so. Which mean my data from different users mixes up leading to undesirable results. This is in My Local Machine and Hosted server - both are virtual Machines.
Private SampleClass b
Public void DoWork(int a,SampleClass obj)
{
try
{
b=obj;
if(b.id !=obj.id)
{
throw new Exception("Error");
}
}
catch(Exception ex)
{
}
}
Kindly Help me Here...