Request.ApplicationPath not consistent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CKKwan

    Request.ApplicationPath not consistent

    Dear All,

    Using VS2008 on Vista (IIS7). Request.Applica tionPath return something
    like "http://localhost:50440/"

    When deploy into Server 2003 (IIS6), found that
    Request.Applica tionPath is returning "c:\\Inetpub\.. ."

    May I know what has gone wrong?

    Thanks in advance.
  • Peter  Bromberg [C# MVP]

    #2
    Re: Request.Applica tionPath not consistent

    localhost:50440 is not an IIS application path it's a built-in development
    server (e.g. Cassini) path.
    Peter
    "CKKwan" <ckkwan@my-deja.comwrote in message
    news:5436f75e-0c95-4b45-b7cf-c870f235cc62@i1 8g2000prn.googl egroups.com...
    Dear All,
    >
    Using VS2008 on Vista (IIS7). Request.Applica tionPath return something
    like "http://localhost:50440/"
    >
    When deploy into Server 2003 (IIS6), found that
    Request.Applica tionPath is returning "c:\\Inetpub\.. ."
    >
    May I know what has gone wrong?
    >
    Thanks in advance.

    Comment

    • Juan T. Llibre

      #3
      Re: Request.Applica tionPath not consistent

      re:
      !When deploy into Server 2003 (IIS6), found that Request.Applica tionPath is returning "c:\\Inetpub\.. ."

      Using Windows 2003 Server with IIS 6.0, it works fine.

      See the sample at :



      apppath9.text = "Request.Applic ationPath is : " & Request.Applica tionPath

      The result of that is : "Request.Applic ationPath is : /test"

      re:
      !May I know what has gone wrong?

      Maybe a typo, and you actually used Request.Physica lPath or Request.Physica lApplicationPat h ?





      Juan T. Llibre, asp.net MVP
      asp.net faq : http://asp.net.do/faq/
      foros de asp.net, en espaƱol : http://asp.net.do/foros/
      =============== =============== ========
      "CKKwan" <ckkwan@my-deja.comwrote in message news:5436f75e-0c95-4b45-b7cf-c870f235cc62@i1 8g2000prn.googl egroups.com...
      Dear All,
      >
      Using VS2008 on Vista (IIS7). Request.Applica tionPath return something
      like "http://localhost:50440/"
      >
      When deploy into Server 2003 (IIS6), found that
      Request.Applica tionPath is returning "c:\\Inetpub\.. ."
      >
      May I know what has gone wrong?
      >
      Thanks in advance.

      Comment

      Working...