Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Web Service Directory

Web Service Directory

Scheduled Pinned Locked Moved C#
question
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Guinness4Strength
    wrote on last edited by
    #1

    Is there anyway to get or reference the local directory a web service is located in ? i.e. similar to Application.StartupPath ?

    D 1 Reply Last reply
    0
    • G Guinness4Strength

      Is there anyway to get or reference the local directory a web service is located in ? i.e. similar to Application.StartupPath ?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      A web service is a variant of an ASP.NET weg application. It doesn't "come alive" until it's called by some consumer and instantiated. There is no "StartupPath".. You could look into using Server.MapPath(), but web services are not my strong suit. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      G 2 Replies Last reply
      0
      • D Dave Kreskowiak

        A web service is a variant of an ASP.NET weg application. It doesn't "come alive" until it's called by some consumer and instantiated. There is no "StartupPath".. You could look into using Server.MapPath(), but web services are not my strong suit. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        G Offline
        G Offline
        Guinness4Strength
        wrote on last edited by
        #3

        Right, I need to get the local path reference within the service during runtime, so I'm not worried about it not being instantiated. I'll look into MapPath(), thanks.

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          A web service is a variant of an ASP.NET weg application. It doesn't "come alive" until it's called by some consumer and instantiated. There is no "StartupPath".. You could look into using Server.MapPath(), but web services are not my strong suit. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          G Offline
          G Offline
          Guinness4Strength
          wrote on last edited by
          #4

          Well it appears the Server.GetPath() method is useful from a client perspective, but I need to get the local path in the service. Any other suggestions ?

          G 1 Reply Last reply
          0
          • G Guinness4Strength

            Well it appears the Server.GetPath() method is useful from a client perspective, but I need to get the local path in the service. Any other suggestions ?

            G Offline
            G Offline
            Guinness4Strength
            wrote on last edited by
            #5

            I was wrong...just had to pass null as the path...thanks Dave.

            D 1 Reply Last reply
            0
            • G Guinness4Strength

              I was wrong...just had to pass null as the path...thanks Dave.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              :-D RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups