Re: what is SERVER a member of?



> From what I can tell this will not help the OP as the MapPath method is
not
> static

I'm not quite sure what you mean by that.

Specifically, I'm taking a virtual path:

/documents/shared/ and mapping it to the actual server, be it my local one
when testing or the live server when deploying.


> To reply to the original question. Server is an instance member of the
Page
> class

Ah! Well, that explains it.

> 2. Use HttpContext.Current.Server.MapPath(). Through a bit of trickery
> (well, thread local storage) this can dig out the server object associated
> with the current request. N.B. If you call this function from a thread
that
> is not processing an HTTP request, it will barf at runtime.

This may be a naive question, but aren't all ASP.net threads part of a HTTP
request (ie, postbacks?)

-Darrel


.



Relevant Pages

  • [REVS] NTLM HTTP Authentication is Insecure By Design
    ... in front of a web server, and that proxy server shares a single TCP ... These are attacks that make use of non-RFC HTTP requests (HTTP Request ... the authentication is associated with the ...
    (Securiteam)
  • [NT] 04WebServer Multiple Vulnerabilities (CSS, Log File Injection, AUX DoS)
    ... 04WebServer is a HTTP server developed by Soft3304 for Windows platforms. ... Characters into Log File ... filtering on the request URL before writing it into the log file. ... following HTTP request, when submitted to a vulnerable 04WebServer, will ...
    (Securiteam)
  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Anonymous Anonymity - Request For Comments
    ... > and request that you reply directly to my e-mail address. ... > for the entity wishing to preserve their anonymity. ... > the machine can perform as a Intermediary Server and / or as a Intermediary ... > The software then attempts connection to a Intermediary Server. ...
    (Bugtraq)
  • Multiple Vulnerabilities in Sun-One Application Server
    ... Multiple Vulnerabilities in Sun-One Application Server ... on Windows 2000, SPI Labs discovered a number of vulnerabilities. ... the case of the file extension in the HTTP request. ...
    (Bugtraq)