Web Service Directory
-
Is there anyway to get or reference the local directory a web service is located in ? i.e. similar to Application.StartupPath ?
-
Is there anyway to get or reference the local directory a web service is located in ? i.e. similar to Application.StartupPath ?
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 -
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 GnomeRight, 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.
-
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 GnomeWell 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 ?
-
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 ?
I was wrong...just had to pass null as the path...thanks Dave.
-
I was wrong...just had to pass null as the path...thanks Dave.
:-D RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome