473,554 Members | 2,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_producer rpt.asp, line 0

--
Betty
Sep 5 '06 #1
4 5144

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_producer rpt.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("POnu mber")) <>"" then
.....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnu mber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber" ) %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency( list("total")) %>
</TD>
<%
num_trnc=num_tr nc+list("cnt")
amt_ttl=amt_ttl +CDbl(list("tot al"))
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_producer rpt.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("POnu mber"))

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("POnu mber")) <>"" then
....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnu mber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber" ) %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency( list("total")) %>
</TD>
<%
num_trnc=num_tr nc+list("cnt")
amt_ttl=amt_ttl +CDbl(list("tot al"))
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_producer rpt.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
2151
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 datagrid. I am using the viewstate object to store the Arraylist items on the page on postback. My PROBLEM is that I need to redirect the user to...
35
34373
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... Thank :)
2
91026
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 objects. I was able to run my application fine for roughly 1500 email messages. The next time I tried sending mail, it stopped working with the...
6
4307
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 serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if...
5
4273
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 errors to the webpage with response.write(). Unfortunately Response.anything from within my class generate a "Response is not declared" error. How...
0
1328
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 the time, this works fine, but occasionally I get the following exception while getting the directory listing: Message: The underlying...
2
19421
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
2897
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
7802
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8042
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7889
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5436
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5155
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3560
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1134
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
841
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.