global.asa在url参数后触发? [英] global.asa fires after url parameters?

查看:356
本文介绍了global.asa在url参数后触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

点击电子邮件中的以下链接即 -
http://myserver/myapplication/myprog...2=more%20stuff

我收到服务器500错误。打开相同的浏览器窗口,如果我再次点击电子邮件中的链接,我会得到所需的页面。如果将网址复制并粘贴到浏览器中,结果是

相同,但是''go''必须是两次按下


看起来服务器正试图在触发

global.asa之前解析网址变量。有谁知道处理的顺序?任何

建议?

解决方案

=?Utf-8?B?V2F0ZXJCdWc =?=写道16 mrt 2005 in

microsoft.public.inetserver.asp.general:

点击电子邮件中的以下链接即 -
< a rel =nofollowhref =http://myserver/myapplication/myprogram.asp?urlvar1 = some%20stuff& urlvartarget =_ blank> http://myserver/myapplication/myprog...20stuff& urlvar
2 =更多%20stuff我收到服务器500错误。打开相同的浏览器窗口,如果我再次点击电子邮件中的链接,我会得到所需的页面。如果将url复制并粘贴到浏览器中,但结果是相同的,但必须按两次go。


这是一个电子邮件客户端和浏览器问题,恕我直言

之前解析网址变量global.asa被解雇了。有没有人知道处理的顺序?
有什么建议吗?




global.asa不会在每次调用页面时触发,仅在[re] ]开始

服务器/ IIS。


为什么你认为global.asa与它有关?

尝试相同,没有任何global.asa存在。

-

Evertjan。

荷兰。

(在我的电子邮件地址中用点替换所有十字架)


E:这是一个电子邮件客户端和浏览器问题,恕我直言

W:我不要相信这是一个电子邮件客户端问题。我可以在没有电子邮件的情况下创建问题

。如果您启动一个新浏览器并使用

urlvariables粘贴该网址,则会发生错误。该页面需要URL变量

从数据库中找到特定的记录集,并且会话必须在此之前启动
才能建立connectionString,你是谁,你的

安全性等等。


E:global.asa不会在每次调用页面时触发,只有在[重新]启动时才会触发

服务器/ IIS。

W:每次打开新浏览器并调用我的应用程序时都会触发。它



应用程序的每个浏览器对话启动一个新的唯一会话。如果没有建立会话,这只是一个问题。


E:为什么你认为global.asa与它有关?尝试相同的

,不存在任何global.asa。

W:如果没有global.asa,我的应用程序将无法运行。我依靠很多会话

vars来进行数据库连接和解决安全问题。


W:我认为这是global.asa,因为我第一次输入url并按

''go''或输入我收到错误但第二次按''go''或输入

页面正确发送。我想在第一次访问服务器时,

服务器1)首先尝试解析url vars,2)然后处理

global.asa,3)然后试图传递我的页面,但我的网址变量不再是
可用。在第二次访问服务器时,会话在

第一次旅行中建立,现在url vars已正确解析。


我还在搜索服务器处理asp

请求的顺序。


WaterBug写道:

E:这是一个电子邮件客户端和浏览器问题,恕我直言W:我不相信这是一个电子邮件客户端问题。我可以创造问题


不是一个大问题,但我建议使用通常引用(就像我在这里做的)

未来增加良好的机会回复。

没有电子邮件。如果您启动一个新浏览器并使用
粘贴网址我不认为这不是电子邮件程序问题

E:global.asa不会在每次调用页面时触发,仅在[重新]启动服务器/ IIS。
W:每次打开新浏览器并调用我的应用程序时都会触发。它使用
应用程序为每个浏览器对话启动一个新的唯一会话。如果没有建立会话,这只是一个问题。


Application_OnStart仅在您的应用程序启动时触发,即

通常仅在您创建后第一次请求页面时才会触发

更改为global.asa。

E:为什么你认为global.asa与它有关?尝试相同的
没有任何global.asa存在。
W:如果没有global.asa,我的应用程序将无法运行。我依靠许多会话
变量来实现数据库连接和解决安全问题。


当新会话开始时,Session_OnStart会被调整一次。这意味着,如果您浏览网站,只需要第一次使用Session_onstart

到第一页。


当你启动另一个webbrowser时,可能会开始一个新的会话,但我想

这是设置的事情吗?


无论如何,我仍在寻找订单服务器处理
asp请求。
服务器似乎试图在触发
global.asa之前解析url变量。有谁知道处理的顺序?任何
建议?




网址变量永远不会自动解决。


如果是新会话,首先调用session_onstart,在那里你可以使用request.querystring来解析url变量。


当session_onstart运行到最后时(或者imediatley如果这是你的b / b
请求)你的asp页面将被编译并从顶部运行到底部的



如果您发布全局asa和myprogram.asp的内容,我相信

更容易发现错误。


Tim


When clicking on the following link from an email i.e -
http://myserver/myapplication/myprog...2=more%20stuff
I get a server 500 error. With that same browser window open, if I click
the link from the email again I get the desired page. The results are the
same if the url is copied and pasted into the brower but the ''go'' must be
pressed twice.

It appears that the server is trying to resolve the url vars before the
global.asa is fired. Does anyone know of the order of processing? Any
suggestions?

解决方案

=?Utf-8?B?V2F0ZXJCdWc=?= wrote on 16 mrt 2005 in
microsoft.public.inetserver.asp.general:

When clicking on the following link from an email i.e -
http://myserver/myapplication/myprog...20stuff&urlvar
2=more%20stuff I get a server 500 error. With that same browser
window open, if I click the link from the email again I get the
desired page. The results are the same if the url is copied and
pasted into the brower but the ''go'' must be pressed twice.
This is a emailclient cum browser issue, IMHO

It appears that the server is trying to resolve the url vars before
the global.asa is fired. Does anyone know of the order of processing?
Any suggestions?



global.asa does not fire every time a page is called, only at a [re]start
of the server/IIS.

Why do you think global.asa has anything to do with it?
Try the same without any global.asa present.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


E: This is a emailclient cum browser issue, IMHO
W: I don''t believe this is an emailclient issue. I can create the problem
without email. If you start a new browser and paste the url with the
urlvariables then the error occurs. The page requires the URL variables to
locate the specific recordset from the database and the session must be
started prior to that to establish connectionString, who you are, your
security, and more.

E: global.asa does not fire every time a page is called, only at a [re]start
of the server/IIS.
W: It fires every time I open a new browser and call my application. It
starts a new unique session for each browser conversation with the
application. This is only an issue if a session is not established.

E: Why do you think global.asa has anything to do with it? Try the same
without any global.asa present.
W: My app won''t work without global.asa present. I rely on many session
vars for db connectivity and resolving security.

W: I think it is global.asa since the first time I type in the url and press
''go'' or enter I get the error but the second time I press ''go'' or enter the
page is delivered correctly. I think on the first trip to the server, the
server 1) attempts to resolve the url vars first, 2) then processes the
global.asa, 3) then attempts to deliver my page but my url vars are no longer
available. On the 2nd trip to the server, the session was established in the
1st trip and now the url vars are resolved correctly.

I am still in search of the order of processing by the server for an asp
request.


WaterBug wrote:

E: This is a emailclient cum browser issue, IMHO
W: I don''t believe this is an emailclient issue. I can create the problem
Not a big issue but I suggest using ordinare quoting (like I do here) in
the future to increase the chance of good responses.
without email. If you start a new browser and paste the url with the I dontt think this is not an email program issue
E: global.asa does not fire every time a page is called, only at a [re]start
of the server/IIS.
W: It fires every time I open a new browser and call my application. It
starts a new unique session for each browser conversation with the
application. This is only an issue if a session is not established.
Application_OnStart fires only when your application starts, that is
generally only the first time a page is requested after you have made
changes to global.asa.
E: Why do you think global.asa has anything to do with it? Try the same
without any global.asa present.
W: My app won''t work without global.asa present. I rely on many session
vars for db connectivity and resolving security.
Session_OnStart is caled once when a new session starts. This means, if
you browse the site, Session_onstart is only called the fist time you go
to the first page.

A new session might start when you start another webbrowser but I guess
that is a settings thing?

Anyway, I am still in search of the order of processing by the server for an
asp request.
It appears that the server is trying to resolve the url vars before the
global.asa is fired. Does anyone know of the order of processing? Any
suggestions?



The url vars are never automatically resolved.

If it is a new session, session_onstart is called first, in there you
might resolve the url vars with request.querystring if you want.

When session_onstart is ran to the end (or imediatley if this is your
second request) your asp page will be compiled and run from the top to
the bottom.

If you post the content of your global asa and myprogram.asp I am sure
it will be much easier to spot the error.

Tim


这篇关于global.asa在url参数后触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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