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. Advertising

  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. Advertising

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

    Retrieving virtual path of web service

    Jon Pope, Aug 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,097
    Brock Allen
    Aug 9, 2005
  2. Replies:
    9
    Views:
    478
    Juan T. Llibre
    Dec 7, 2006
  3. =?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,023
    Eliyahu Goldin
    Aug 1, 2007
  4. marss
    Replies:
    5
    Views:
    991
    marss
    Sep 13, 2007
  5. Scott Tilton

    Convert Physical path to Virtual path?

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

Share This Page