Re: Anyone have experience w/ Application["AppState"]?
From: Patrice (nobody_at_nowhere.com)
Date: 05/18/04
- Next message: Hans Kesting: "Re: window.print() ??"
- Previous message: avnrao: "Re: window.print() ??"
- In reply to: Julie: "Anyone have experience w/ Application["AppState"]?"
- Next in thread: Julie: "Re: Anyone have experience w/ Application["AppState"]?"
- Reply: Julie: "Re: Anyone have experience w/ Application["AppState"]?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 10:55:00 +0200
This is an application variable that is initialized and stored for later
reuse. If you start browsing from localhost, it will record this path and it
will then be incorrect for other users browsing from outside.
Try first to see if it's ok when the application is first accessed when not
using localhost...
It is likely initialized in the global.asax file.
"Julie" <julie@nospam.com> a écrit dans le message de
news:40A98831.953C17EB@nospam.com...
> I stumbled across Application["AppState"] from someone else's code, and I
can't
> find out squat about by searching MS, Google, or Google Groups.
>
> For the most part, this is returning the fully-qualified name of the
server and
> path to my application, such as:
>
> http://devserver/testapp
>
> However, on 1 of my test servers, it returns:
>
> http://localhost/testapp
>
> When browsing the app on the server, that isn't a problem, however if
remotely
> accessing it from another machine, it is still returning localhost. As
> mentioned, the same application on 3 other servers behaves as expected
where
> the servername is appropriately substituted.
>
> The only difference between the servers is the ones that work are running
IIS 5
> (XP), the one that doesn't is running IIS 4 (2k). Is there some
difference
> between these IIS versions that would somehow affect how
Application["AppPath"]
> is initialized?
>
> Thanks
- Next message: Hans Kesting: "Re: window.print() ??"
- Previous message: avnrao: "Re: window.print() ??"
- In reply to: Julie: "Anyone have experience w/ Application["AppState"]?"
- Next in thread: Julie: "Re: Anyone have experience w/ Application["AppState"]?"
- Reply: Julie: "Re: Anyone have experience w/ Application["AppState"]?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|