G
Guest
Hi,
I have been recently receiving the System.InvalidOperartionException with
the message "There is already an open DataReader associated with this
Connection which must be closed first." from my business application. The
fact is I haven't used DataReader in my application. All data management is
done with dataset. The stack trace clearly reveals that this happens when
Fill method is called on the dataadapter object. This exception happens when
I had about 15 users concurrently testing the web application. The ADO.NET
code is coded within a .NET remote application deployed in IIS 6.0 servers on
W2K3 server. I think this is a concurrency problem and I read in one of the
newsgroups that if I handle the FillError event and set the continue property
to true I can overcome this problem.
First of all, I want to understand why Fill method led to this error and I
would also like to know if there is any other way other than fill error event
handler to prevent this exception crashing application.
Any suggesstions or pointers will be greatly appreciated.
Thank you.
Magdelin
I have been recently receiving the System.InvalidOperartionException with
the message "There is already an open DataReader associated with this
Connection which must be closed first." from my business application. The
fact is I haven't used DataReader in my application. All data management is
done with dataset. The stack trace clearly reveals that this happens when
Fill method is called on the dataadapter object. This exception happens when
I had about 15 users concurrently testing the web application. The ADO.NET
code is coded within a .NET remote application deployed in IIS 6.0 servers on
W2K3 server. I think this is a concurrency problem and I read in one of the
newsgroups that if I handle the FillError event and set the continue property
to true I can overcome this problem.
First of all, I want to understand why Fill method led to this error and I
would also like to know if there is any other way other than fill error event
handler to prevent this exception crashing application.
Any suggesstions or pointers will be greatly appreciated.
Thank you.
Magdelin