473,325 Members | 2,828 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,325 software developers and data experts.

non duplicable response object error

Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0

--
Betty
Sep 5 '06 #1
4 5141

c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0
Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind

Sep 5 '06 #2
Mike,
Thanks for your post.
I pull the data from database and notice that there is one row with column
ponumber is empty, I guess this is where the problem comes from, because in
my code I have --- <%= list("POnumber") %>-- so I set the '12345' in that
column for this record, and then the program runs fine.
But I am still confused since I already checked
if Trim(list("POnumber")) <>"" then
.....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnumber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber") %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency(list("total")) %>
</TD>
<%
num_trnc=num_trnc+list("cnt")
amt_ttl=amt_ttl+CDbl(list("total"))
list.MoveNext
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
%>
</TR>
<%
loop
%>
Betty
"Mike Brind" wrote:
>
c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0

Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind

Sep 5 '06 #3
Hello,

Regarding the issue, what is your underlying database, SQL server or
Access? And, what is the data type for column "POnumber", string or integer?

If you remove the code "<%= list("POnumber") %>" and replace with a string
like

<TD ALIGN=RIGHTTest PO Number </TD>

And then review the August report, will this fix the problem? If so, you
check the actual value when you generate the August report. for example,
wirte the values directly with:

Response.Write list("POnumber")

Will this give correct values?

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 6 '06 #4
Then PONumber does not = "" (an empty string) - it is probably Null.
Try this test:

ponumber = Trim(list("POnumber"))

If ponumber <>"" And Not IsNull(ponumber) Then
....

You can verify the type using the TypeName function:

Response.Write TypeName(list("POnumber"))

--
Mike Brind

c676228 wrote:
Mike,
Thanks for your post.
I pull the data from database and notice that there is one row with column
ponumber is empty, I guess this is where the problem comes from, because in
my code I have --- <%= list("POnumber") %>-- so I set the '12345' in that
column for this record, and then the program runs fine.
But I am still confused since I already checked
if Trim(list("POnumber")) <>"" then
....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnumber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber") %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency(list("total")) %>
</TD>
<%
num_trnc=num_trnc+list("cnt")
amt_ttl=amt_ttl+CDbl(list("total"))
list.MoveNext
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
%>
</TR>
<%
loop
%>
Betty
"Mike Brind" wrote:

c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
>
>
Response object error 'ASP 0104 : 80070057'
>
Operation not Allowed
>
/select_producerrpt.asp, line 0
>
Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind
Sep 6 '06 #5

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

Similar topics

11
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
35
by: Eitan | last post by:
Hello, How can I write a line (with carriage return + line feed) to the client ? response.write("abcd"), continue the last line, and doesn't put cr+lf. response.writeLn is illegal syntax... ...
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
5
by: Michael | last post by:
Hello, I have a separate Database class that handles any database work that all my asp.net pages can use. My problem is, many times I use try/catch to catch errors, and I want to output these...
0
by: =?Utf-8?B?Qm9i?= | last post by:
I have written a Windows service that periodically lists the contents of an FTP directory until a new file becomes available. Then, it gets the new file and writes it to the local server. Most of...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.