Re: Anyone have experience w/ Application["AppState"]?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Patrice (nobody_at_nowhere.com)
Date: 05/18/04


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



Relevant Pages

  • Re: system32driversetchosts doesnt get read
    ... That is the localhost address ... Are the entries for local, or for distant, servers? ... remember to run "ipconfig /flushdns" after making changes. ... How about you provide an example of a Hosts file entry that you made, ...
    (microsoft.public.windowsxp.network_web)
  • RE: Sendmail Question
    ... I thought that to send emails you need to ... >> servers and then upon getting the MX server, ... I'd be willing to bet it was submitted from localhost. ... I'm not concerned about being an open relay. ...
    (Fedora)
  • Re: ASPX page fails to serve up using
    ... When deployed to two different servers, ... display properly when using the addresshttp://localhost/mywebapp/default.aspx. ... If I replace localhost with a DNS ... Its possible .Net 2.0 isn't registered properly with IIS. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Anyone have experience w/ Application["AppState"]?
    ... If you start browsing from localhost, it will record this path and it ... > find out squat about by searching MS, Google, or Google Groups. ... the same application on 3 other servers behaves as expected ... > between these IIS versions that would somehow affect how ...
    (microsoft.public.dotnet.framework.aspnet)
  • locating origin of spammer
    ... I got up this morning and discovered that someone sent some spam through ... one of my servers. ... localhost, which is leading me to think somewhere someone has an insecure ... I grepped all of apache's log files looking for sites that received hits ...
    (freebsd-questions)