J
Joe C.
I inherited 2 web applications written in classic asp. These applications
were very long and used ADO 2.5 and due to limited budget we were to keep
them in ADO 2.5 and convert them to ASP.NET.
When the server is rebooted the first application to start will run fine and
continues to run as such. The second application to start will produce an
"Object reference not set to an instance of an object. " error.
here is a sample code shows where it fails:
Dim strId As String
ggConn.Open("Provider=SQLOLEDB.1;Password=password;Persist Security
Info=False;User ID=userID;Initial Catalog=mainDb;Data Source=SQL2Server")
Dim strSql As String
Dim RsRpt As New ADODB.Recordset()
Dim Rs As New ADODB.Recordset()
Rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient
Rs.Open("select * from [employees] ORDER BY [last_name], ggConn,
ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)
strId = Rs.Fields("ID").Value '*** statement where I the application
fails
I am using ASP.NET and VB.NET, IIS 5, W2K server SP4, Any idea what might be
causing this error? I tried several solutions form MS knowledgebase without
any success. Your help is greatly appreciated and thank you in advance.
were very long and used ADO 2.5 and due to limited budget we were to keep
them in ADO 2.5 and convert them to ASP.NET.
When the server is rebooted the first application to start will run fine and
continues to run as such. The second application to start will produce an
"Object reference not set to an instance of an object. " error.
here is a sample code shows where it fails:
Dim strId As String
ggConn.Open("Provider=SQLOLEDB.1;Password=password;Persist Security
Info=False;User ID=userID;Initial Catalog=mainDb;Data Source=SQL2Server")
Dim strSql As String
Dim RsRpt As New ADODB.Recordset()
Dim Rs As New ADODB.Recordset()
Rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient
Rs.Open("select * from [employees] ORDER BY [last_name], ggConn,
ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)
strId = Rs.Fields("ID").Value '*** statement where I the application
fails
I am using ASP.NET and VB.NET, IIS 5, W2K server SP4, Any idea what might be
causing this error? I tried several solutions form MS knowledgebase without
any success. Your help is greatly appreciated and thank you in advance.