This sounds like a double hop issue to me then. You probably have an
impersonation token with WIA and a primary token with Basic. The
impersonation token can't make another machine hop, but the primary token
can.
The solution to this is usually to use delegation.
http://msdn.microsoft.com/vstudio/us...lementKerberos
Joe K.
"Nikolay Petrov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Also with "Basic" Authentication everything works fine
>
> "Nikolay Petrov" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I have the following web method:
>>
>> <WebMethod()> _
>> Public Function Test_CurrentCredentials() As String()
>> Dim tmpArr(2) As String
>> tmpArr(0) = "User: " &
>> System.Threading.Thread.CurrentPrincipal.Identity.Name
>> tmpArr(1) =
>> System.Threading.Thread.CurrentPrincipal.Identity.AuthenticationType.ToString
>> tmpArr(2) =
>> System.Threading.Thread.CurrentPrincipal.Identity.IsAuthenticated.ToString
>> Return tmpArr
>> End Function
>>
>> In my app I call it this way:
>> Dim tmpArr() as string
>> Dim svc As New WebReference.Service1
>> svc.Credentials = System.Net.CredentialCache.DefaultCredentials
>> tmpArr = svc.Test_CurrentCredentials
>>
>> The app is Windows Forms app.
>>
>> When I run the app I get the following error:
>> The request failed with HTTP status 401: Access Denied
>>
>>
>> I have Disabled Anonymous authentication for my Web Service folder. Only
>> Integrated Windiows Authentication is active.
>> In my Web Service web.config file I have thi line:
>> <authentication mode="Windows" />
>> When Anonymous is Enabled I can connect to service.
>>
>> I have auditing turned on and doesn't show nothing.
>> What is the problem?
>>
>> Tia
>>
>
>