This is the function that I use in web service for getting current windows user.
<WebMethod()> _
Function User() As String
Dim p() As String = Split(My.User.Name, "\")
Dim p1 As String = p(1)
Return p1
End Function
When I run service on localhost it realy return current windows user name! The problem is when i run service from remote PC, in that case I got nothing from this function. What is problem with this service, and how I can get name of Windows user?
Thanks!