Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 A default property was not found for the object.
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Alfred
Senior Member

USA
1527 Posts

Posted - 27 October 2003 :  23:15:06  Show Profile  Visit Alfred's Homepage
A search for this error message returned me nothing.

This is the statement that brought it on:
quote:
strSql = "SELECT * FROM FORUM_MEMBERS WHERE M_NAME = '" & myReportGame("CHALLENGER") & "'"
set CHALLaddress = my_Conn.Execute(strSql)
What would one usually suspect as the cause of it?

Alfred
The Battle Group
CREDO

Edited by - Alfred on 28 October 2003 00:29:09

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  07:29:50  Show Profile
are you sure it is that line giving the error or a line following it?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  10:37:01  Show Profile  Visit Alfred's Homepage
It is the statement that causes it.
When I comment both lines out, the error is not present.

Alfred
The Battle Group
CREDO

Edited by - Alfred on 28 October 2003 10:52:10
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 28 October 2003 :  10:58:27  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
But what line number is the error happening on?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  11:04:02  Show Profile  Visit Alfred's Homepage
This is one of those error msg that does not give the line#!
quote:
Error Type:
Response object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/BG/FORUMS/GAME_RESULT_HANDLER.asp


Alfred
The Battle Group
CREDO

Edited by - Alfred on 28 October 2003 11:05:48
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  12:10:44  Show Profile
my guess is it is a problem with this: myReportGame("CHALLENGER")
make sure you have opened that recordset correctly.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  14:22:52  Show Profile  Visit Alfred's Homepage
That was my first suspicion as well, so I tested the return on:
quote:
response.write "<br>" & myReportGame("CHALLENGER")
response.end
strSql = "SELECT * FROM FORUM_MEMBERS WHERE M_NAME = '" & myReportGame("CHALLENGER") & "'"
set CHALLaddress = my_Conn.Execute(strSql)

and it displayed the name correctly.

Alfred
The Battle Group
CREDO
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  14:24:52  Show Profile
instead of using *, why don't you specify the exact fields you want and see if that works.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 28 October 2003 :  14:29:51  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Nikkol that "shouldnt" cause the problem just better for performance.

Is there code above the lines you show that use my_conn?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  15:17:53  Show Profile
I know redbrad0, it shouldn't. I'm only going on the information that Alfred has given us, which is that those lines are causing the problem.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  15:30:12  Show Profile  Visit Alfred's Homepage
Yes, that is what I had first:
quote:
set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString
strSql = "SELECT M_EMAIL FROM FORUM_MEMBERS WHERE M_NAME = '" & myReportGame("CHALLENGER") & "'"
set CHALLaddress = my_Conn.Execute(strSql)

I only tested with '*' later.

Yes, redbrad - there is code above it, but it uses an earlier connection.

Alfred
The Battle Group
CREDO

Edited by - Alfred on 28 October 2003 15:32:34
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  15:35:21  Show Profile
why are you creating a new connection to the database? If you have closed the connection previously, then the recordset myReportGame is no longer valid. If you have not closed it then you are attempting to reopen when it's not needed, which will cause problems.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  16:38:32  Show Profile  Visit Alfred's Homepage
Yes, Nikkol, what you say here is something I had learned just recently, which is why I started out without opening a new connection.
When I got the error first (same kind as now) I thought it must be because it wants me to open a connection.
When I comment it out I get the same error.
quote:
'set my_Conn = Server.CreateObject("ADODB.Connection")
'my_Conn.Open strConnString

'response.write "<br>" & myReportGame("CHALLENGER")
'response.end
strSql = "SELECT M_EMAIL FROM FORUM_MEMBERS WHERE M_NAME = '" & myReportGame("CHALLENGER") & "'"
set CHALLaddress = my_Conn.Execute(strSql)

quote:
Error Type:
Response object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/BG/FORUMS/GAME_RESULT_HANDLER.asp




Alfred
The Battle Group
CREDO
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  16:42:52  Show Profile
why don't you post a link to a text version of the page and specify the line number that is giving the problem. it's impossible to tell what is going on without seeing what else you are doing in the code.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Alfred
Senior Member

USA
1527 Posts

Posted - 28 October 2003 :  17:03:25  Show Profile  Visit Alfred's Homepage
http://www.ggholiday.com/bg/forums/test.txt

at line 57

Alfred
The Battle Group
CREDO
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 October 2003 :  17:24:50  Show Profile
on line 34 you are opening another connection to the database. there is already a connection established in inc_header and it is closed in inc_footer.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07