Interesting,
I remembered I had a function that uses the app.config file in xdocument to identify my Web Service endpoints. My reference to it is hard coded. I also have a couple of other files that I reference in a similar way that are relocated with the ClickOnce installation.
Code:
Public Shared Function GetServiceEndpoint(ByRef InterfaceType As String) As String
Dim ServiceEndpoint As String
Directory.SetCurrentDirectory(Globals.WorkingDirectory)
Dim startPosition As Integer = InterfaceType.LastIndexOf(".") + 1
Dim InterfaceName As String = InterfaceType.Substring(startPosition)
InterfaceName = InterfaceName.Replace("Channel", "")
Dim doc As XDocument = XDocument.Load("../../app.config")
ServiceEndpoint = _
(From ep In doc.Descendants("endpoint")
Where (ep.Attribute("contract").Value.Contains(InterfaceName))
Select ep.Attribute("name")).Last().Value.ToString()
Return ServiceEndpoint
End Function
Now to find a workaround....