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?
Jul 22 '05
16 2280
Works fine for me. Is there a global.asa file that is supposed to go along
with this?
--
--Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"WaterBug" <Wa******@discu ssions.microsof t.com> wrote in message
news:57******** *************** ***********@mic rosoft.com... The browser call... http://127.0.0.1/MyApp/EvalPage.asp?...lly&type=orbit
MyApp is defined as an application in IIS...
The contents of EvalPage.asp... <%@ Language=VBScri pt %> <%option explicit
response.Write "Trainee= " & request("traine e") & " Evaluator= " & request("evalua tor") & " type= " & request("type")
response.Write "<br>query_stri ng= " & request.ServerV ariables("query _string") response.Write "<br>request_ur i= " & request.ServerV ariables("reque st_uri") response.Write "<br>path_i nfo= " & request.ServerV ariables("path_ info") response.Write "<br>path_trans lated= " & request.ServerV ariables("path_ translated") response.Write "<br>http_h ost= " & request.ServerV ariables("http_ host") response.Write "<br>http_refer er= " & request.ServerV ariables("http_ referer") response.Write "<br>path= " & request.ServerV ariables("path" ) %>
The first time the URL listed above is requested the query_string is returned as an empty string. Repaste the URL (cause the query_string gets stripped) and the query_string is returned...k
"Bob Barrows [MVP]" wrote:
WaterBug wrote: > Let me try to rephrase my problem. On a page call that invokes a new > unique application/session, the included query string (URL > parameters) that are passed are trashed, ignored, stripped (however > you want to say it). Is it true that the server's asp process will > ignore URL variables if the page invokes a new session? Is it > impossible to refer to URL parameters on the page that starts a > session. It appears I am unable to refer to URL parameters in an asp > page that invokes a session.
Create a small page (or set of pages) that illustrates your problem. This description is hard to follow.
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
"Bob Barrows [MVP]" wrote: WaterBug wrote: The browser call...
http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit
MyApp is defined as an application in IIS...
The contents of EvalPage.asp... <%@ Language=VBScri pt %> <snip> The first time the URL listed above is requested the query_string is returned as an empty string.
By "returned", do you mean the
response.Write "query_stri ng= " & _ request.ServerV ariables("query _string")
statement writes an empty string?
No, that does not happen to me. I'm using IE6 on a Win2000 machine. What are you using?
The first paste of the URL
( http://127.0.0.1/MyApp/EvalPage.asp?
trainee=astrona ut&evaluator=ke lly&type=orbit)
into the Address line of the browser writes query_string as an empty string
(or query_string=) . When pasting the URL into the address line the second
time (thus requesting a second trip to the server) the browser writes
query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
WaterBug wrote: "Bob Barrows [MVP]" wrote: WaterBug wrote: The browser call...
http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit
MyApp is defined as an application in IIS...
The contents of EvalPage.asp... <%@ Language=VBScri pt %> <snip> The first time the URL listed above is requested the query_string is returned as an empty string.
By "returned", do you mean the
response.Write "query_stri ng= " & _ request.ServerV ariables("query _string")
statement writes an empty string?
No, that does not happen to me. I'm using IE6 on a Win2000 machine. What are you using?
The first paste of the URL (http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit) into the Address line of the browser writes query_string as an empty string (or query_string=) . When pasting the URL into the address line the second time (thus requesting a second trip to the server) the browser writes query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
As I said: it does not happen to me. I agree with the others: you have a
problem in your global.file.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
I have recreated a project in Visual Studio 2003 and everything works fine
when there is no global.asa. When I add a global.asa that does very little
or an empty global.asa then the page url variables are not recognized during
the first load. The behavior is again demonstrated that only during the
second load does the query_string get recognized. Can one of you add an
empty global.asa in your project to see if this 'breaks' it? Thanks...k
"Bob Barrows [MVP]" wrote: WaterBug wrote: "Bob Barrows [MVP]" wrote: WaterBug wrote: The browser call...
http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit
MyApp is defined as an application in IIS...
The contents of EvalPage.asp... <%@ Language=VBScri pt %> <snip> The first time the URL listed above is requested the query_string is returned as an empty string.
By "returned", do you mean the
response.Write "query_stri ng= " & _ request.ServerV ariables("query _string")
statement writes an empty string?
No, that does not happen to me. I'm using IE6 on a Win2000 machine. What are you using?
The first paste of the URL (http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit) into the Address line of the browser writes query_string as an empty string (or query_string=) . When pasting the URL into the address line the second time (thus requesting a second trip to the server) the browser writes query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
As I said: it does not happen to me. I agree with the others: you have a problem in your global.file.
No problem here. What if you use Request.QuerySt ring ?
Try also with an emply global.asa (rather than with doing a minimal amount
for things we have no idea about).
Are you sure this is not a cache issue ?
Patrice
--
"WaterBug" <co*****@saic.c om> a écrit dans le message de
news:63******** *************** ***********@mic rosoft.com... I have recreated a project in Visual Studio 2003 and everything works fine when there is no global.asa. When I add a global.asa that does very
little or an empty global.asa then the page url variables are not recognized
during the first load. The behavior is again demonstrated that only during the second load does the query_string get recognized. Can one of you add an empty global.asa in your project to see if this 'breaks' it? Thanks...k
"Bob Barrows [MVP]" wrote:
WaterBug wrote: "Bob Barrows [MVP]" wrote: > WaterBug wrote: >> The browser call... >> >> http://127.0.0.1/MyApp/EvalPage.asp? >> trainee=astrona ut&evaluator=ke lly&type=orbit >> >> MyApp is defined as an application in IIS... >> >> The contents of EvalPage.asp... >> <%@ Language=VBScri pt %> > <snip> >> The first time the URL listed above is requested the query_string is >> returned as an empty string. > > By "returned", do you mean the > > response.Write "query_stri ng= " & _ > request.ServerV ariables("query _string") > > statement writes an empty string? > > No, that does not happen to me. I'm using IE6 on a Win2000 machine. > What are you using?
The first paste of the URL (http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit) into the Address line of the browser writes query_string as an empty string (or query_string=) . When pasting the URL into the address line the second time (thus requesting a second trip to the server) the browser writes query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
As I said: it does not happen to me. I agree with the others: you have a problem in your global.file.
Don't make us guess what you mean by "empty global.asa". Post the global.asa
code that causes the problem for you.
--
Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"WaterBug" <co*****@saic.c om> wrote in message
news:63******** *************** ***********@mic rosoft.com... I have recreated a project in Visual Studio 2003 and everything works fine when there is no global.asa. When I add a global.asa that does very
little or an empty global.asa then the page url variables are not recognized
during the first load. The behavior is again demonstrated that only during the second load does the query_string get recognized. Can one of you add an empty global.asa in your project to see if this 'breaks' it? Thanks...k
"Bob Barrows [MVP]" wrote:
WaterBug wrote: "Bob Barrows [MVP]" wrote: > WaterBug wrote: >> The browser call... >> >> http://127.0.0.1/MyApp/EvalPage.asp? >> trainee=astrona ut&evaluator=ke lly&type=orbit >> >> MyApp is defined as an application in IIS... >> >> The contents of EvalPage.asp... >> <%@ Language=VBScri pt %> > <snip> >> The first time the URL listed above is requested the query_string is >> returned as an empty string. > > By "returned", do you mean the > > response.Write "query_stri ng= " & _ > request.ServerV ariables("query _string") > > statement writes an empty string? > > No, that does not happen to me. I'm using IE6 on a Win2000 machine. > What are you using?
The first paste of the URL (http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit) into the Address line of the browser writes query_string as an empty string (or query_string=) . When pasting the URL into the address line the second time (thus requesting a second trip to the server) the browser writes query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
As I said: it does not happen to me. I agree with the others: you have a problem in your global.file.
All of my projects have a global.asa file, including the one I tested your
code with.
Bob Barrows
WaterBug wrote: I have recreated a project in Visual Studio 2003 and everything works fine when there is no global.asa. When I add a global.asa that does very little or an empty global.asa then the page url variables are not recognized during the first load. The behavior is again demonstrated that only during the second load does the query_string get recognized. Can one of you add an empty global.asa in your project to see if this 'breaks' it? Thanks...k
"Bob Barrows [MVP]" wrote:
WaterBug wrote: "Bob Barrows [MVP]" wrote: WaterBug wrote: > The browser call... > > http://127.0.0.1/MyApp/EvalPage.asp? > trainee=astrona ut&evaluator=ke lly&type=orbit > > MyApp is defined as an application in IIS... > > The contents of EvalPage.asp... > <%@ Language=VBScri pt %> <snip> > The first time the URL listed above is requested the query_string > is returned as an empty string.
By "returned", do you mean the
response.Write "query_stri ng= " & _ request.ServerV ariables("query _string")
statement writes an empty string?
No, that does not happen to me. I'm using IE6 on a Win2000 machine. What are you using?
The first paste of the URL (http://127.0.0.1/MyApp/EvalPage.asp? trainee=astrona ut&evaluator=ke lly&type=orbit) into the Address line of the browser writes query_string as an empty string (or query_string=) . When pasting the URL into the address line the second time (thus requesting a second trip to the server) the browser writes query_string= trainee=astrona ut&evaluator=ke lly&type=orbit
As I said: it does not happen to me. I agree with the others: you have a problem in your global.file.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Lamey |
last post by:
Hi All,
I have the following code but for some reason I cannot get the Session_OnEnd
event to fire.
I am trying to limit the amount of connections a browser session can have.
Where the application is a virtual directory.
Any ideas?
------------
|
by: Tim::.. |
last post by:
Hi,
Can someone please tell me why I get this error when I try to build my ASP.NET application???
Could not load type 'CPNNet.Global'.
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="CPNiNet.Global" %>
Thanks for any help!
|
by: Stu |
last post by:
Hi,
Im using vis studio 2003 and I think wse is out of the question as clients
could be using java which doesnt support it. So I managed to find some code
which allows you to develop a custom soap header called by using a http
module. The problem Im having is I cannot seem to get the event to raise to
fire off my authenticate method in the global.asax. The module is plumbed in
to my web.config file
Code Below:-
|
by: furiousmojo |
last post by:
This is a strange problem. I have a project where the contents of
global.asax application_error are not firing. It is an asp.net 2.0
application using web application projects. I have another app using
web application projects and it's firing fine but it was upgraded from
the 1.1 framework.
Why doesn't my global.asax application_error routine fire?
|
by: thomson |
last post by:
Hi All,
i do have an website with the URL http://localhost/application/ASEAN-ANZ,
Once i hit the application, it goes to the Global.asax.
but after that if i tried to change the URL http://localhost/application/en-US,
the global.asax is not fired.
| |
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |