Click here to Skip to main content
15,886,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Added webreference Authentication.asmx to page..

C#
Authentication auth = new Authentication();
AuthenticationMode authmode = auth.Mode();

LoginResult x = auth.Login("username", "password");


Here Mode is returning "Windows", and in x it says ErrorCode:NotInFormsAuthentication..

Can you please suggest how can we proceed further if it is the case?
Posted
Updated 8-Feb-12 19:31pm
v4
Comments
Rajesh Anuhya 9-Feb-12 1:32am    
Edited.

1 solution

What are you trying to accomplish? If you are using Windows authentication there is no need to handle authentication yourself. If you want to handle it you must set the authentication mode to Forms, and have the appropriate configuration settings for the web application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900