G
grompl
I want to read an xml file that is located in the directory of the web
service (c:\inetpub\wwwroot\WLSService\). I've written this little test
method:
<WebMethod()> Public Function openregwls() As String
Dim path As String =
System.Reflection.Assembly.GetExecutingAssembly.CodeBase
path = path.Substring(0, path.LastIndexOf("/"c)) 'bin path
path = path.Substring(0, path.LastIndexOf("/"c) + 1) 'root
path of web service
Dim xmlDoc As New Xml.XmlDocument
xmlDoc.Load(path & "reg.wls")
Return xmlDoc.OuterXml
End Function
it works fine on my machine, but can it cause problems on other
machines like permission or security exeptions?
service (c:\inetpub\wwwroot\WLSService\). I've written this little test
method:
<WebMethod()> Public Function openregwls() As String
Dim path As String =
System.Reflection.Assembly.GetExecutingAssembly.CodeBase
path = path.Substring(0, path.LastIndexOf("/"c)) 'bin path
path = path.Substring(0, path.LastIndexOf("/"c) + 1) 'root
path of web service
Dim xmlDoc As New Xml.XmlDocument
xmlDoc.Load(path & "reg.wls")
Return xmlDoc.OuterXml
End Function
it works fine on my machine, but can it cause problems on other
machines like permission or security exeptions?