Retrieving virtual path in Web Service.

Discussion in 'ASP .Net Web Services' started by Ibrahim., Jun 11, 2007.

  1. Ibrahim.

    Ibrahim. Guest

    Hello,

    I have a web service project, in one of my classes I like to get the virtual
    path of the Server name from c# code behind.

    Thanks,
     
    Ibrahim., Jun 11, 2007
    #1
    1. Advertisements

  2. On Jun 11, 8:28 am, Ibrahim. <>
    wrote:
    > Hello,
    >
    > I have a web service project, in one of my classes I like to get the virtual
    > path of the Server name from c# code behind.
    >
    > Thanks,


    You can try this:

    this.Server.MapPath() to get the physical folder for a virtual path.
    Or you can do this.Context.Request to get the current request to the
    WebService. What are you trying to do specifically?
     
    Javier G. Lozano, Jun 12, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Pope
    Replies:
    2
    Views:
    2,019
    Matt Berther
    Mar 16, 2005
  2. Jon Pope

    Retrieving virtual path of web service

    Jon Pope, Aug 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,223
    Brock Allen
    Aug 9, 2005
  3. Replies:
    9
    Views:
    695
    Juan T. Llibre
    Dec 7, 2006
  4. =?Utf-8?B?SmVmZiBCZWVt?=

    physical path to virtual path under virtual directory

    =?Utf-8?B?SmVmZiBCZWVt?=, Aug 1, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,250
    Eliyahu Goldin
    Aug 1, 2007
  5. Spam Catcher
    Replies:
    1
    Views:
    1,156
    John Saunders [MVP]
    Sep 3, 2007
  6. marss
    Replies:
    5
    Views:
    1,195
    marss
    Sep 13, 2007
  7. Leo Violette
    Replies:
    0
    Views:
    1,293
    Leo Violette
    Apr 17, 2009
  8. Scott Tilton

    Convert Physical path to Virtual path?

    Scott Tilton, Jul 11, 2003, in forum: ASP General
    Replies:
    2
    Views:
    808
    Dhananjay Modak
    Jul 11, 2003
Loading...