Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Post New Answer

More C Sharp Code Interview Questions

how do i copy textbox contents of 1 form to another form

4 Answers   Wipro,


How to add a value from textBox over an existing certain column in SQL Server

0 Answers  


How to Create Files by Using the FileInfo Class?

1 Answers  


How to pass multiple rows from one gridview to another gridview after clicking the checkbox.

1 Answers   Satyam,


"c sharp" code for factorial using static variables

9 Answers  


How to Link Different Data Sources Together?

0 Answers  


Code for Reading and writing from a file in c#?

1 Answers  


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); } }

0 Answers  


Coding for Manipulate XML File Data Using C#?

1 Answers  


Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#

1 Answers  


how can i split sting in textbox in windows application using c# .net

2 Answers  


program for addition of fraction(M/N + P/Q = Y/Z)

1 Answers   Mind Tree,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)