I am trying to access network resources from a web method as follows:
I am locked out at all times. I have tried the following incantations of the impersonate line in my web.config:
I am an admin on this machine and I can see these files in windows explorer. I have tried adding in my actual login name instead of 'administrator' but then I can't even compile. I cannot compile with my login.domain either.
Any suggestions?
What would be the proper way to express one's full login name:
First.Last/domain
First.Last\domain
First.Last@domain
PHP:
<WebMethod(Description:="Authorize")> _
Public Function TestImpersonate() As String
If File.Exists("//0501DD/PRO/12546/ENT.doc") Then
Return "Authorized"
Else
Return "Locked Out"
End If
End Function
I am locked out at all times. I have tried the following incantations of the impersonate line in my web.config:
Code:
<identity impersonate="true" userName="administrator" password=""/>
<identity impersonate="true" userName="administrator"/>
<identity impersonate="true" />
I am an admin on this machine and I can see these files in windows explorer. I have tried adding in my actual login name instead of 'administrator' but then I can't even compile. I cannot compile with my login.domain either.
Any suggestions?
What would be the proper way to express one's full login name:
First.Last/domain
First.Last\domain
First.Last@domain