AuthenticationException: User not authenticated

M

mohanaranga

Hi all,

I got the exception "AuthenticationException: User not
authenticated" , when i call the web service method. Before I call the
method I have set the credentials also.here is the sample code.

Web_Service.CustomerManagerService custManger = new
Web_Service.CustomerManagerService();
// set the credentials
custManger.Credentials = new
System.Net.NetworkCredential("xxx","xxx");
//Calling Web Service method
int nId= custManger.GetCustomer();

Please help me asap.

Regards,
Mohan
 
J

John Saunders [MVP]

mohanaranga said:
Hi all,

I got the exception "AuthenticationException: User not
authenticated" , when i call the web service method. Before I call the
method I have set the credentials also.here is the sample code.

Web_Service.CustomerManagerService custManger = new
Web_Service.CustomerManagerService();
// set the credentials
custManger.Credentials = new
System.Net.NetworkCredential("xxx","xxx");
//Calling Web Service method
int nId= custManger.GetCustomer();

Please help me asap.

Did you research AuthenticationException? See
http://msdn2.microsoft.com/en-us/library/system.security.authentication.authenticationexception.aspx,
which I found by typing "AuthenticationException" into the Search box at
http://msdn.microsoft.com. Read the article carefully.
 
M

mohanaranga

Did you research AuthenticationException? Seehttp://msdn2.microsoft.com/en-us/library/system.security.authenticati...,
which I found by typing "AuthenticationException" into the Search box athttp://msdn.microsoft.com. Read the article carefully.

Hi John Saunders

I got the exception "soap.exceptions.AuthenticationException" I
can't catch exception in the
System.Security.Authentication.AuthenticationException

Please reply on this.
 
J

John Saunders [MVP]

Did you research AuthenticationException?
Seehttp://msdn2.microsoft.com/en-us/library/system.security.authenticati...,
which I found by typing "AuthenticationException" into the Search box
athttp://msdn.microsoft.com. Read the article carefully.

Hi John Saunders

I got the exception "soap.exceptions.AuthenticationException" I
can't catch exception in the
System.Security.Authentication.AuthenticationException

Please reply on this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top