Hello
I am hosting remoting within IIS. Everything works just
fine as long as
I allow anonymous access at the IIS level.
When I allow only Windows Authenticated sessions, something
very
strange happens:
If the client activates the remote object with IP address -
works fine
If the client activates it using a machine name - get http
401 exception is thrown.
The exception is thrown when the client calls the remote
method.
I set the channel's useDefaultCredentials property to true.
Any idea how to allow Windows Authentication?
Here is the call stack:
System.Net.WebException: The remote server returned an
error: (401)
Unauthorized
.. ---> System.ComponentModel.Win32Exception: The target
principal name
is incorrect
at System.Net.NTAuthentication.GetOutgoingBlob(Byte[]
incomingBlob,
Boolean handshakeComplete)
at System.Net.NTAuthentication.GetOutgoingBlob(String
incomingBlob,
Boolean handshakeComplete)
at System.Net.NegotiateClient.DoAuthenticate(String
challenge,
WebRequest webRequest, ICredentials credentials, Boolean
preAuthenticate)
at System.Net.NegotiateClient.DoAuthenticate(String
challenge,
WebRequest webRequest, ICredentials credentials, Boolean
preAuthenticate)
at System.Net.NegotiateClient.Authenticate(String challenge,
WebRequest webRequest, ICredentials credentials)
at System.Net.AuthenticationManager.Authenticate(String
challenge,
WebRequest request, ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate
(HttpWebRequest
httpWebRequest, ICredentials authInfo)
--- End of inner exception stack trace ---
No Answer is Posted For this Question
Be the First to Post Answer
Code for Working with Files under a Directory?
Code for Reading and writing from a file in c#?
Code for IP Address Comparison and Conversion in C#?
program for addition of fraction(M/N + P/Q = Y/Z)
Write a program to count the number of characters, number of words, number of line in file.
c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors not using the Big-integer and Exponential Function's.
program to reverse the order of digits in a given number of any length.
program for straight line(y=mx+c)
Code for Reading and writing from a file?
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string
IS Array list is generic or non generic