Empty dataset with multiple requests

G

Guest

When I have two users click a button with 1 sec of each other, one of the
users is returned an empty dataset, resulting in a 'no row at position 0
error'.

Here is an obfuscated snippet:

Dim objCustomerFacade As New CustomerFacade()
Dim Customer As New TypedDataset
Customer = objCustomerFacade.Login(Username, Password)
With Customer
Me.AccountId = CType(.CUSTOMER_TABLE(0).ACCOUNT_ID, Integer)
End With

Me.AccountId is a public property defined in my custom page base class,
which inherits from System.Web.UI.Page. CustomerFacade is a class between the
UI and the data layer.

I am using the 1.0 framework. Any thoughts are appreciated. I've been
leaning toward a threading problem, but datasets are thread safe aren't they?
 
G

Guest

Based on what little you have given me, I would look and see if you are
running exclusive locks on the database that populates your "facade" object.
Very common if you are using Access, but possible with other databases.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top