一个人得到ASP错误.... [英] ONE person gets an ASP error....

查看:67
本文介绍了一个人得到ASP错误....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几百个我的客户的特许经营者愉快地访问我的

ASP / VBscript网站......但是一个 - 只有一个 - 报告了以下内容:

我自从周五开始尝试登录LSM并获得此消息

当我想进入主页上的任何项目时。

回复对象错误

''ASP 0156:''80004000''

标题错误

/lsm/ListPolls.asp.Line 21
HTTP标头已写入客户端浏览器。任何HTTP标题

必须在编写页面内容之前进行修改。

我已经尝试了有问题的页面,一切都很好......所以有其他人 - 没有

问题。

那么一个人怎么会遇到这样的服务器端错误?


积分:

*她在W98上使用IE6(.1)

*我知道在发布重定向时通常会产生''错误'

在开始写页面之后......并且Response.Buffer将解决

'问题''。我曾经使用过这个,当*我*看到一个错误

出现,但因为她是唯一一个得到错误的人,而且(显然)

发生在几页上),这似乎是一种愚蠢的方式(因为我没有

得到问题)

*第21行 - 如所示违规行 - 是如果

授权(通过Session var)失败,只会被调用....但是她没有这么远,所以除非她*已登录,否则无法进入该网站

和auth。存储.... ???


有人可以提供更多有关正在发生的事情的见解吗?


Steve



解决方案

虽然我想你可能故意为一个人造成这个错误,如果你
$ b $如果request.servervariables(" remote_addr")=" 192.168.1.50" b真的很想,即


<%

然后

response.flush

response.redirect" others.asp"

结束如果

%>


我会假设你没有这样做。你在缓冲吗?什么版本的IIS?

IIS 4(带有Option Pack的NT 4)默认情况下不缓冲,其中IIS5和

结束。对于好的衡量标准,你有response.buffer = true吗?应该为所有人避免这种情况。也许其他人只是得到500错误,

而这个用户禁用了友好错误,并且没有人向您报告

500。打开缓冲应该可以解决问题。我无法想到

的任何理由为什么它会为每个人缓冲一个人。


雷在家


Steve Bywaters <通过****** @ bigpond.net.au>在留言中写道

新闻:OL ************** @ TK2MSFTNGP12.phx.gbl ...

有几百个我的客户的特许经营者愉快地访问我的
ASP / VBscript网站......但是只有一个 - 只报了一个 - 报告了以下内容:

我一直试图登录到LSM从星期五开始收到此消息
当我想进入主页上的任何项目时。
响应对象错误
''ASP 0156:''80004000''
标头错误
/lsm/ListPolls.asp.Line 21
HTTP标头已写入客户端浏览器。任何HTTP标题都必须在编写页面内容之前进行修改。

我已经尝试了有问题的页面,一切都很好......还有其他人 -
没问题。
那么一个人如何得到这样的服务器端错误?

要点:
*她在W98上使用IE6(.1)
*我理解,在开始编写页面后,当重定向是
时,通常会产生''错误'......并且Response.Buffer将解决那个'问题''。我曾经使用过这个,当*我*看到错误发生时,但因为她是唯一一个得到错误的人,而且b
(显然)发生在几个页面上),那就是似乎是一个愚蠢的方式去(因为我做
没有得到问题)
*第21行 - 如所示违规行 - 只有在
授权(通过Session var)失败时才被调用。 ..但她没有得到这个
远离网站,除非她*已登录,并且授权。存储.... ???

有人可以提供更多关于发生了什么的见解吗?

史蒂夫



没有缓冲(在这些页面上)....

我理解你的假设,但在这种情况下它不正确

其他用户*不*得到错误...他们得到正确的页面

显示。


实际上它是比这更微妙(如原文所示)..因为

失败的行是仅在

访问失败时执行的行 - 即会话值未设置,它们被'重定向'到拒绝的

页面(对于一个用户来说失败)!!

但他们无法访问甚至去失败页面*除非*他们是

正确登录....


嗯(!?)......我不明白。


史蒂夫


" Ray at<%= sLocation%>" < myFirstNameATlane34dotKOMM>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...

当我想象一下,如果你真的想要,你可以故意为一个人造成这个错误,例如

<%
如果request.servervariables(" remote_addr")=" 192.168 .1.50"那么
response.flush
response.redirect" others.asp"
结束如果
%>

我会假设你''不这样做。你在缓冲吗?什么版本的
IIS? IIS 4(带有Option Pack的NT 4)默认情况下不缓冲,其中IIS5
和over。对于好的衡量标准,你有response.buffer = true吗?
应该为所有人避免这种情况。也许其他人只是得到500错误,
而该用户已禁用友好错误,并且没有人向您报告
500。打开缓冲应该可以解决问题。我想不出有什么理由为什么它会为每个人缓冲一个人。

Ray在家里

Steve Bywaters <通过****** @ bigpond.net.au>在消息中写道
新闻:OL ************** @ TK2MSFTNGP12.phx.gbl ...

我的客户有几百个''特许经营者愉快地访问
我的ASP / VBscript网站......但是一个 - 只有一个 - 报告了以下


我一直试图登录到LSM从星期五开始,当我想进入主页上的任何项目时收到这条
的消息。
响应对象错误
''ASP 0156:''80004000''
标头错误
/lsm/ListPolls.asp.Line 21
HTTP标头已写入客户端浏览器。任何HTTP
标题修改都必须在编写页面内容之前进行。

我已经尝试了有问题的页面,一切都很好......所以有其他人 -

没有

问题。
那么一个人如何得到这样的服务器端错误?

要点:
*她是在W98上使用IE6(.1)
*我知道在开始写入后,当重定向


发出

时,通常会产生''错误''页面......而Response.Buffer将解决那个问题。我曾经使用过这个,当*我*看到发生了
错误,但因为她是唯一一个得到错误的人,而且它


(显然)

发生在几个页面上),这似乎是一种愚蠢的方式(因为我


NOT

得到问题)
*第21行 - 如上所示,如果
授权(通过Session var)失败,则仅调用违规行 - 但她无法获得此


进入网站,除非她*登录,并授权。存储.... ???

有人可以提供更多关于发生了什么的见解吗?

史蒂夫





可能她已经禁用了她的cookie,包括会话cookie,或者她是

后面的防火墙或代理谁阻止他们或她正在使用某种

匿名软件。


在所有这些情况下,她将是在无会话状态:IIS将从一个页面转到另一个页面时无法保留其会话的值

,因为她的会话cookie被阻止或否则无法使用。


SL

" Steve Bywaters" <通过****** @ bigpond.net.au>在消息中写道

新闻:O8 ************** @ TK2MSFTNGP10.phx.gbl ...

没有缓冲(关于这些页面)....
我理解你的假设,但在这种情况下它不正确
其他用户*不*得到错误......他们得到了正确的页面
显示。

实际上它比这更微妙(如原文中所示)..因为失败的行是一条只有在访问 - 即如果未设置会话值,则将它们重定向到
拒绝页面(对于一个用户来说失败)!!
但是他们甚至无法进入到了失败页面*除非*他们正确登录....

嗯(!?)......我不明白。

史蒂夫

Ray at<%= sLocation%> < myFirstNameATlane34dotKOMM>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...

虽然我想你可以故意如果

真的想要,即

<%
如果请求导致一个人出现此错误.servervariables(" remote_addr")=" 192.168.1.50"那么
response.flush
response.redirect" others.asp"
结束如果
%>

我会假设你''不这样做。你在缓冲吗?什么版本的


IIS?

IIS 4(带有Option Pack的NT 4)默认情况下不缓冲,其中IIS5


over do。对于好的衡量标准,你有response.buffer = true吗?那个


应该

为所有人避免这种情况。也许其他人只是得到500错误,
而这个用户已禁用友好错误,并且没有人报告


500。打开缓冲应该可以解决问题。我不能


想到

任何理由为什么它会为每个人缓冲一个人。

雷在家
Steve Bywaters <通过****** @ bigpond.net.au>在消息中写道
新闻:OL ************** @ TK2MSFTNGP12.phx.gbl ...

我的客户有几百个''特许经营者愉快地访问我的ASP / VBscript网站......但是一个 - 只有一个 - 报告了以下情况:

我自从周五开始尝试登录LSM并在收到此消息时我想进入主页上的任何项目。
响应对象错误
''ASP 0156:''80004000''
标题错误
/lsm/ListPolls.asp .Line 21
HTTP标头已写入客户端浏览器。在编写页面内容之前必须进行任何HTTP标头修改。

我已经尝试了有问题的页面,一切都很好......所以有
其他 - 没有

问题。
那么一个人如何得到这样的服务器端错误?

要点:
*她在W98上使用IE6(.1)
*我明白在开始编写页面后,当重定向


发出

时,通常会产生''错误'... .Buffer将


解决'问题''。我曾经使用过这个,当*我*看到发生错误时,但由于她是唯一一个得到错误的人,而且它


(显然)

发生在几页上),这似乎是一种愚蠢的方式(因为我



不要

得到问题)
*第21行 - 如所示违规行 - 仅在
授权(通过Session var)失败时被调用....但她无法获得


到目前为止

进入网站,除非她*已登录,并且授权。存储.... ???

有人可以提供更多关于发生了什么的见解吗?

史蒂夫





There are several hundred of my client''s franchisees happily accessing my
ASP/VBscript web site... but one - just one - has reported the following:
"I have been trying to log onto the LSM since friday and get this message
when I want to go into any of the items on Home Page.
Response object error
''ASP 0156: ''80004000''
Header error
/lsm/ListPolls.asp.Line 21
The HTTP header are already written to the client browser. Any HTTP header
modifications must be made before writing page content."
I have tried the page(s) in question and all is well... so have others - no
problem.
So how can ONE person get such a server-side error?

Points:
* She is using IE6 (.1) on W98
* I understand that the ''error'' often is produced when a Redirect is issued
after starting to write the page... and that Response.Buffer will solve
that ''problem''. I have used this in the past, when *I* have seen an error
occur, but since she is the only one getting the error, and it (apparently)
happens on several pages), that would seem a silly way to go (since I do NOT
get the problem)
* Line 21 - as indicated the offending line - is ONLY called if
authorisation (via Session var) fails.... but she couldn''t have got this far
into the site unless she *had* logged in, and auth. stored.... ???

Can someone provide more insight as to what''s happening?

Steve



解决方案

While I imagine you could purposely cause this error for one person if you
really wanted to, i.e.

<%
if request.servervariables("remote_addr") = "192.168.1.50" then
response.flush
response.redirect "elsewhere.asp"
end if
%>

I''ll assume you''re not doing that. Are you buffering? What version of IIS?
IIS 4 (NT 4 with Option Pack) does not buffer by default, where as IIS5 and
over do. Do you have response.buffer = true for good measure? That should
avoid this for all people. Perhaps others are just getting a 500 error,
whereas this user has friendly errors disabled, and no one is reporting the
500 to you. Turning on buffering should solve the problem. I cannot think
of any reason why it would buffer for everyone but one person.

Ray at home

"Steve Bywaters" <by******@bigpond.net.au> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...

There are several hundred of my client''s franchisees happily accessing my
ASP/VBscript web site... but one - just one - has reported the following:
"I have been trying to log onto the LSM since friday and get this message
when I want to go into any of the items on Home Page.
Response object error
''ASP 0156: ''80004000''
Header error
/lsm/ListPolls.asp.Line 21
The HTTP header are already written to the client browser. Any HTTP header
modifications must be made before writing page content."
I have tried the page(s) in question and all is well... so have others - no problem.
So how can ONE person get such a server-side error?

Points:
* She is using IE6 (.1) on W98
* I understand that the ''error'' often is produced when a Redirect is issued after starting to write the page... and that Response.Buffer will solve
that ''problem''. I have used this in the past, when *I* have seen an error
occur, but since she is the only one getting the error, and it (apparently) happens on several pages), that would seem a silly way to go (since I do NOT get the problem)
* Line 21 - as indicated the offending line - is ONLY called if
authorisation (via Session var) fails.... but she couldn''t have got this far into the site unless she *had* logged in, and auth. stored.... ???

Can someone provide more insight as to what''s happening?

Steve



No buffering (on these pages)....
I understand your hypothesis, but it''s not correct in this case
Other users are *not* getting the error... they get the correct page
display.

In fact it is more subtle than this (as indicated in orig. post).. because
the line no of failure is a line that gets executed only on failure of
access - ie if a session value is not set, they are ''Redirect''ed to a denied
page (which is failing for ONE user)!!
BUT they cannot get to even go to the "failing" page *unless* they ARE
logged in correctly....

Huh (!?)... I don''t get this.

Steve

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

While I imagine you could purposely cause this error for one person if you
really wanted to, i.e.

<%
if request.servervariables("remote_addr") = "192.168.1.50" then
response.flush
response.redirect "elsewhere.asp"
end if
%>

I''ll assume you''re not doing that. Are you buffering? What version of IIS? IIS 4 (NT 4 with Option Pack) does not buffer by default, where as IIS5 and over do. Do you have response.buffer = true for good measure? That should avoid this for all people. Perhaps others are just getting a 500 error,
whereas this user has friendly errors disabled, and no one is reporting the 500 to you. Turning on buffering should solve the problem. I cannot think of any reason why it would buffer for everyone but one person.

Ray at home

"Steve Bywaters" <by******@bigpond.net.au> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...

There are several hundred of my client''s franchisees happily accessing my ASP/VBscript web site... but one - just one - has reported the following:

"I have been trying to log onto the LSM since friday and get this message when I want to go into any of the items on Home Page.
Response object error
''ASP 0156: ''80004000''
Header error
/lsm/ListPolls.asp.Line 21
The HTTP header are already written to the client browser. Any HTTP header modifications must be made before writing page content."
I have tried the page(s) in question and all is well... so have others -


no

problem.
So how can ONE person get such a server-side error?

Points:
* She is using IE6 (.1) on W98
* I understand that the ''error'' often is produced when a Redirect is


issued

after starting to write the page... and that Response.Buffer will solve
that ''problem''. I have used this in the past, when *I* have seen an error occur, but since she is the only one getting the error, and it


(apparently)

happens on several pages), that would seem a silly way to go (since I do


NOT

get the problem)
* Line 21 - as indicated the offending line - is ONLY called if
authorisation (via Session var) fails.... but she couldn''t have got this


far

into the site unless she *had* logged in, and auth. stored.... ???

Can someone provide more insight as to what''s happening?

Steve






Probably she have disabled her cookies, including session cookies, or she is
behind a firewall or a proxy who block them or she is using some kind of
anonymiser software.

In all these cases, she will be in a session-less state: the IIS will be
unable to retain her session''s values when going from one page to another
because her session cookie is blocked or otherwise unavailable.

S. L.
"Steve Bywaters" <by******@bigpond.net.au> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl...

No buffering (on these pages)....
I understand your hypothesis, but it''s not correct in this case
Other users are *not* getting the error... they get the correct page
display.

In fact it is more subtle than this (as indicated in orig. post).. because
the line no of failure is a line that gets executed only on failure of
access - ie if a session value is not set, they are ''Redirect''ed to a denied page (which is failing for ONE user)!!
BUT they cannot get to even go to the "failing" page *unless* they ARE
logged in correctly....

Huh (!?)... I don''t get this.

Steve

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

While I imagine you could purposely cause this error for one person if you

really wanted to, i.e.

<%
if request.servervariables("remote_addr") = "192.168.1.50" then
response.flush
response.redirect "elsewhere.asp"
end if
%>

I''ll assume you''re not doing that. Are you buffering? What version of


IIS?

IIS 4 (NT 4 with Option Pack) does not buffer by default, where as IIS5


and

over do. Do you have response.buffer = true for good measure? That


should

avoid this for all people. Perhaps others are just getting a 500 error,
whereas this user has friendly errors disabled, and no one is reporting


the

500 to you. Turning on buffering should solve the problem. I cannot


think

of any reason why it would buffer for everyone but one person.

Ray at home

"Steve Bywaters" <by******@bigpond.net.au> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...

There are several hundred of my client''s franchisees happily accessing my ASP/VBscript web site... but one - just one - has reported the following:

"I have been trying to log onto the LSM since friday and get this message when I want to go into any of the items on Home Page.
Response object error
''ASP 0156: ''80004000''
Header error
/lsm/ListPolls.asp.Line 21
The HTTP header are already written to the client browser. Any HTTP header modifications must be made before writing page content."
I have tried the page(s) in question and all is well... so have others - no

problem.
So how can ONE person get such a server-side error?

Points:
* She is using IE6 (.1) on W98
* I understand that the ''error'' often is produced when a Redirect is


issued

after starting to write the page... and that Response.Buffer will

solve that ''problem''. I have used this in the past, when *I* have seen an error occur, but since she is the only one getting the error, and it


(apparently)

happens on several pages), that would seem a silly way to go (since I


do NOT

get the problem)
* Line 21 - as indicated the offending line - is ONLY called if
authorisation (via Session var) fails.... but she couldn''t have got

this far

into the site unless she *had* logged in, and auth. stored.... ???

Can someone provide more insight as to what''s happening?

Steve





这篇关于一个人得到ASP错误....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆