Click here to Skip to main content
15,311,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a WCF Service Library Project using wsHttpBinding and successfully running service

"http://.......:8731/Design_Time_Addresses/ServiceWSHttp/Service1/mex"

WCF Client Code:

Added WCFservice in client (windows Application) application using "Add Service Reference" and created a proxy for it in a button

C#
private void button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.Service1Client s = new WinFormWSHttp.ServiceReference1.Service1Client() ;
            MessageBox.Show(s.GetData(3).ToString());

        }

Its successfully running in a same system when i self host the WCF service and run a client. But not running when my wcf client is on different system, its throwing an exception

SecurityNegotiationException
SOAP security negotiation with 'http://...:9001/MyService' for target 'http://...:9001/MyService' failed. See inner exception for more details.

whats the problm with my code, please help me out
Posted
Updated 18-Oct-11 0:03am
v2

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