C
Chris Zopers
Hello,
I've developed a web application. The application uses one static
connection object. Some methods use Transactions. Everything works fine,
except when several users start using the webapplication at the same
time. I often get the following message:
"Execute requires the Command object to have a Transaction object when
the Connection object assigned to the Command is in a pending local
transaction. The Transaction property of the Command has not been
initialized."
I think it has something to do with using one static connection for all
users, but do not know this for sure. I tried locking the
connection-code with the Lock statement, but the error still occurs.
The webserver has multiple processors, my local machine has only one
processor. Can this have something to do with it? I do not know what can
cause this, the code seems to be correct, no errors occur when the code
is run by one user. We use Oracle 9i as the database.
Greetings,
Chris
I've developed a web application. The application uses one static
connection object. Some methods use Transactions. Everything works fine,
except when several users start using the webapplication at the same
time. I often get the following message:
"Execute requires the Command object to have a Transaction object when
the Connection object assigned to the Command is in a pending local
transaction. The Transaction property of the Command has not been
initialized."
I think it has something to do with using one static connection for all
users, but do not know this for sure. I tried locking the
connection-code with the Lock statement, but the error still occurs.
The webserver has multiple processors, my local machine has only one
processor. Can this have something to do with it? I do not know what can
cause this, the code seems to be correct, no errors occur when the code
is run by one user. We use Oracle 9i as the database.
Greetings,
Chris