473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Response object, ASP 0185 (0x8002000E) when Response.Write'ing a variable

Hi All,

Using Win2k SP4, no .NET stuff just plain ASP using JScript as
serverside scripting language.

Early in my .asp file I have this bit of code :

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/cnn_intra.asp" -->
<!--#include file="../connections/cnn_intra_shaped.asp" -->

-- cut some irrelevant code from here --

<%
var rst_shapeset = Server.CreateObject("ADODB.Recordset");
rst_shapeset.ActiveConnection = MM_cnn_intra_shaped_STRING;
rst_shapeset.Source = "SHAPE {SELECT * FROM dbo.tbl_pm_revisiondetails
WHERE
dbo.tbl_pm_revisiondetails.Par = " +
rst_shapeset__var_projectid.replace(/'/g, "''") + " ORDER BY
dbo.tbl_pm_revisiondetails.revID DESC} APPEND ({SELECT * FROM
dbo.tbl_pm_expenses} RELATE revID TO Par) AS expenses";
rst_shapeset.CursorType = 0;
rst_shapeset.CursorLocation = 2;
rst_shapeset.LockType = 1;
rst_shapeset.Open();
var rst_shapeset_numRows = 0;
%>

-- cut some more irrelevant code from here --

<%
var rst_expensesShapeChild = rst_shapeset("expenses").Value;
%>

-- cut yet more irrelevant code from here --

<%
var expensesTotal = 0;

if (!rst_expensesShapeChild.EOF || !rst_expensesShapeChild.BOF) {
rst_expensesShapeChild.MoveFirst();
while (!rst_expensesShapeChild.EOF) {
expensesSubTotal = rst_expensesShapeChild +
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;
rst_expensesShapeChild.MoveNext;
}
}
%>

All the above happens *before* the <HTML> tag. Somewhere within the
<BODY> I have this:

<td><div align="right"><%=expensesSubTotal%></div></td>

Obviously the variable expensesSubTotal is populated by the While loop
in the last bit of ASP/Javascript code above. But I'm getting the
error:

Error Type:
Response object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/ictest/pmdb/pmdb_sub_commercial.asp, line 463

It doesnt seem to matter whether I just use <%=expensesSubTotal%> or
<%Response.Write(expensesSubTotal)%> I always get the same error.
Microsoft appear to know nothing whatsoever of this error, a search of
the entire microsoft.com site yields absolutely nothing.

If anyone can help me I'd be very grateful! If anyone from Microsoft
is reading this, please document the error messages, how are we
supposed to fix bugs when we can't even find out what's wrong?
Jul 22 '05 #1
5 6537
> expensesSubTotal = rst_expensesShapeChild +
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;


Can you explain exactly what the above line is supposed to be doing?

IntegerVariable = RecordsetObject + RecordsetValue;

???

Did you mean:

expensesSubTotal +=
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;

???
Jul 22 '05 #2
Well, the first thing I would do would be to hard-code a value for
expensesSubTotal. Does this work?

Then debug/response write out the values of any intermediate variables
without performing math..etc etc

Jeff
"Niall Porter" <ni*********@yahoo.co.uk> wrote in message
news:2d**************************@posting.google.c om...
Hi All,

Using Win2k SP4, no .NET stuff just plain ASP using JScript as
serverside scripting language.

Early in my .asp file I have this bit of code :

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/cnn_intra.asp" -->
<!--#include file="../connections/cnn_intra_shaped.asp" -->

-- cut some irrelevant code from here --

<%
var rst_shapeset = Server.CreateObject("ADODB.Recordset");
rst_shapeset.ActiveConnection = MM_cnn_intra_shaped_STRING;
rst_shapeset.Source = "SHAPE {SELECT * FROM dbo.tbl_pm_revisiondetails
WHERE
dbo.tbl_pm_revisiondetails.Par = " +
rst_shapeset__var_projectid.replace(/'/g, "''") + " ORDER BY
dbo.tbl_pm_revisiondetails.revID DESC} APPEND ({SELECT * FROM
dbo.tbl_pm_expenses} RELATE revID TO Par) AS expenses";
rst_shapeset.CursorType = 0;
rst_shapeset.CursorLocation = 2;
rst_shapeset.LockType = 1;
rst_shapeset.Open();
var rst_shapeset_numRows = 0;
%>

-- cut some more irrelevant code from here --

<%
var rst_expensesShapeChild = rst_shapeset("expenses").Value;
%>

-- cut yet more irrelevant code from here --

<%
var expensesTotal = 0;

if (!rst_expensesShapeChild.EOF || !rst_expensesShapeChild.BOF) {
rst_expensesShapeChild.MoveFirst();
while (!rst_expensesShapeChild.EOF) {
expensesSubTotal = rst_expensesShapeChild +
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;
rst_expensesShapeChild.MoveNext;
}
}
%>

All the above happens *before* the <HTML> tag. Somewhere within the
<BODY> I have this:

<td><div align="right"><%=expensesSubTotal%></div></td>

Obviously the variable expensesSubTotal is populated by the While loop
in the last bit of ASP/Javascript code above. But I'm getting the
error:

Error Type:
Response object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/ictest/pmdb/pmdb_sub_commercial.asp, line 463

It doesnt seem to matter whether I just use <%=expensesSubTotal%> or
<%Response.Write(expensesSubTotal)%> I always get the same error.
Microsoft appear to know nothing whatsoever of this error, a search of
the entire microsoft.com site yields absolutely nothing.

If anyone can help me I'd be very grateful! If anyone from Microsoft
is reading this, please document the error messages, how are we
supposed to fix bugs when we can't even find out what's wrong?

Jul 22 '05 #3
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message news:<ec**************@TK2MSFTNGP15.phx.gbl>...
expensesSubTotal = rst_expensesShapeChild +
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;


Can you explain exactly what the above line is supposed to be doing?

IntegerVariable = RecordsetObject + RecordsetValue;

???

Did you mean:

expensesSubTotal +=
rst_expensesShapeChild.Fields.Item("ExpenseValue") .Value;

???


Yes, sorry ignore me, my code is mince :) Ever had one of those times
where you've been working on one thing for about 2 weeks and only
managed to get maybe 10 lines of code working? You get the picture...

Thanks for the responses tho, my bad!

Niall
Jul 22 '05 #4
I was searching Google for this error and i happened upon this post. right after i found this post i resolved the error. It's no wonder that MS knows nothing about this because there isn't anything to know. basically the error description says it all... "The object is missing a default property." It turns out i was using a reserved word as a variable like this <%=application%>. even though i had assigned a value to the value to "application" the system thought i was trying to use the Application object and since i did not give a property it gave an error :-( I found the location of the error by using the <%on error resume next%> trick and basically working from the top of te page down until the error popped up again. this was a total oversight on my part. dont be fooled by correct looking code, even when i found it i did not beleive it was the problem because it looked correct. I hope this helps, Scott

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Jul 22 '05 #5
Well, a search for 8002000E brings me straight to this article:
http://www.aspfaq.com/2384

--
http://www.aspfaq.com/
(Reverse address to reply.)


"wsb" <sb*****@comcast.net> wrote in message
news:el**************@TK2MSFTNGP14.phx.gbl...
I was searching Google for this error and i happened upon this post. right after i found this post i resolved the error. It's no wonder that MS knows
nothing about this because there isn't anything to know. basically the error
description says it all... "The object is missing a default property." It
turns out i was using a reserved word as a variable like this
<%=application%>. even though i had assigned a value to the value to
"application" the system thought i was trying to use the Application object
and since i did not give a property it gave an error :-( I found the
location of the error by using the <%on error resume next%> trick and
basically working from the top of te page down until the error popped up
again. this was a total oversight on my part. dont be fooled by correct
looking code, even when i found it i did not beleive it was the problem
because it looked correct. I hope this helps, Scott
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &

ASP.NET resources...
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe Blow via DotNetMonster.com | last post by:
Hello, I have a design problem involving class instances as global variables. To give you my background, I've programmed lots in Java, and most of it has been large class structures. I'm...
1
by: Wolfram Heinz | last post by:
Hi there, How can I avoid type-conversion (object variable --> string) when passing an object variable to a function? Example: --> catch(myerrorobject) alert(myerrorobject.filename); {...
1
by: Deano | last post by:
Just recreated my relationships in the Relationships window. Trying to print and immediately our old friend 'Object variable or With Block variable not set' pops up. I've tried compacting and...
3
by: Joe Schwartz | last post by:
All, Could somebody please help me out here. I am getting an "Object variable or With block variable not set" error with the following code. This happens when I enter a value into the "ponum"...
6
by: Neo Geshel | last post by:
I am trying to deal with an image in code-behind. I consistently get the following error: Server Error in '/' Application. Object variable or With block variable not set. Description: An...
3
by: Richard Hollenbeck | last post by:
I've marked the line in this subroutine where I've been getting this error. It may be something stupid but I've been staring at this error trying to fix it for over an hour. I'm pretty sure the...
9
by: axs221 | last post by:
I am trying to move some of our large VBA Access front-end file into ActiveX DLL files. I created two DLL files so far, one was a module that contains code to integrate into the QuickBooks...
3
by: Newbie19 | last post by:
I'm trying to get a list of all subfolders in a folder on a share drive, but I keep on getting this error message: Object variable or With block variable not set. Description: An unhandled...
8
by: cloh | last post by:
Thanks to all the people who reply so promptly to my questions! I have another one related to the form I am working on. When I try to call this function from another, I get the "Object variable or...
2
by: Newbie2VB | last post by:
When I run my code, I get this "object variable or with block variable not set" error message. Public Function fGetHeaderList() As String Dim strList(5) As CheckBox Dim i As Integer ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.