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
How to add a value from textBox over an existing certain column in SQL Server
Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.
program to reverse the order of words in a string.
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
Hello Sir, Thanks for the Solution but, can you pls. Explain the coding for the Static Function & static variable from the below coding....waiting for Ans. class fact { public static void Main() { fact f=new fact(); int x=1; //Declaration of x as 1 int k=Convert.ToInt32(Console.ReadLine()); for(int i=1;i<=k;i++) { x= x *i; } System.Console.WriteLine(x); } }
Can you declare an array of mixed Types?
program for straight line(y=mx+c)
Code for Searching for Multiple Matches with the MatchCollection Class?
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
How to Create Files by Using the FileInfo Class?
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.