Solved

ASP: Connection error '800a0e79'  - Operation is not allowed when the object is open.

Posted on 2004-08-13
2
886 Views
Last Modified: 2008-01-09
Hi

I'm having a problem with the 800a0e79 error.
Any suggestions would be great - cheers

Woolly


*************************************************************

The ASP file is as follows:

<%@ Language=VBScript %>
<!--#include file="connection.inc" -->

<%
  conStr.ConnectionTimeout  = 0
  conStr.CommandTimeout = 0
 
  conStr.Open 'see inside the include ="dsn=Autowired;uid=Autowired;pwd=polkado98t;"
  cmdCommand.CommandType =  1
  Set cmdCommand.ActiveConnection = conStr
  cmdCommand.CommandText =  "update [user] set sent=0"
  cmdCommand.execute

%>
<html><body>
Sent flagged cleared for all users.
</body></html>

*********************************************************
My Include files is:

<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""

'below is an explicit connection
Dim conStr       'connection object          
Dim strsql       'sql string
Dim cmdCommand
Dim objFSO, fileStream
 
Set cmdCommand  = Server.CreateObject("ADODB.Command")
Set conStr = Server.CreateObject("ADODB.Connection")
conStr.Open "dsn=test;uid=me;pwd=;"

'''''''''''''''''''''''''' recordsets
set recSet = Server.CreateObject("ADODB.Recordset")
set rsCount = Server.CreateObject("ADODB.Recordset")
set rsCount_numRows = Server.CreateObject("ADODB.Recordset")
Set rsUsers = Server.CreateObject("ADODB.Recordset")
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

 
%>
0
Comment
Question by:mwoolgar
2 Comments
 
LVL 4

Accepted Solution

by:
rlibrandi earned 50 total points
ID: 11791924
You're opening the connection in the include file:

>>conStr.Open "dsn=test;uid=me;pwd=;"<<

Then trying to open it again after you include your file:

<!--#include file="connection.inc" -->

<%
  conStr.ConnectionTimeout  = 0
  conStr.CommandTimeout = 0
 
>>  conStr.Open 'see inside the include ="dsn=Autowired;uid=Autowired;pwd=polkado98t;"<<
0
 
LVL 3

Expert Comment

by:Jonthemoon
ID: 11793302
rlibrandi Is Right...

Too bad I can't add anything I won't get points ;-)


-Jonthemoon
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now