I have a WCF Service that loads a file located on a local web server. How can I load that file based off an Uri? So I don't have to hard code in the address? So instead of doing a XmlDocument.Load(http://mywebaddress/ConfigFile/config.xml); I could put in or find the current URL of webservice then add the parameter. Sort of like this: XmlDocument.Load("~/ConfigFile/config.xml"); That way if I'm publishing or Debugging it's all one file in the same exact location.
View Complete Post