Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object reference not set to an instance of an object

Status
Not open for further replies.
Aug 16, 2001
26
0
0
NZ
I'm getting the error "Object reference not set to an instance of an object" at the execution of the "gDtlConOleDbObj.Open()" in the folowing code of my webpage.aspx.vb

Public gDtlConOleDbObj As New OleDbConnection
Public gDtlTransOleDbObj As OleDbTransaction
Private Sub Page_Load()
Dim mMyConStr as String
mMyConStr = "Provider=MSDAORA;User ID..."
gDtlConOleDbObj = New OleDbConnection
gDtlConOleDbObj.ConnectionString = mMyConStr
gDtlConOleDbObj.Open()
gDtlTransOleDbObj = gDtlConOleDbObj.BeginTransaction
End Sub

This error occurs only when i open several browser instances of my webpage at the same time.

kindly let me know what could solve this issue.
 
Try closing the connection before opening another page. There may (or may not) be some funky locks and stuff creating the trouble.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top