Click here to Skip to main content
15,878,230 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every one,
I have WCF service. I want to use that in the C# class library.
for this i have added this WCF as service reference.
I have used the class channel factory and provided all the necessary credentials.
Channel opend perfectly but I am getting the following error.
"The HTTP request is unauthorized with client authentication scheme Basic. The authentication header received from the server was
Basic realm="Idc Security /idc/idcplg".

Can any one suggest me where I did wrong?
Thank you
Updated 24-Nov-10 23:57pm

1 solution

The client is configured to use basic authenitcation, but the sevice is configured for something else (e.g. Windows auth, federated, custom etc).
You'll need to provide samples of the configs for both the client and the server before we can tell exactly what needs to be changed.
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