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
working with arrays
Write a program to count 3Letter, 4Letter and 5Letter words from a file and print the number of 3Letter, 4Letter and 5Letter words. Delimiter is space, tab, hifen. Also we should not consider the line in the file after we encounter # in that line.
Write a program to convert postfix expression to infix expression.
Coding for Manipulate XML File Data Using C#?
Give the code for Handling Mouse Events?
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Coding for using Nullable Types in C#?
program to reverse the order of digits in a given number of any length.
How to pass multiple rows from one gridview to another gridview after clicking the checkbox.
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
program to check if a number is "perfect number".
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long