I have a proxy object generated by Visual Studio (client side) named ServerClient. I am attempting to set ClientCredentials.UserName.UserName/Password before opening up a new co
I have similar code that's passing UserName fine:
UserName
FooServiceClient client = new FooServiceClient("BasicHttpBinding_IFooService"); client.ClientCredentials.UserName.UserName = "user"; client.ClientCredentials.UserName.Password = "password";
Try creating the proxy with binding name in app.config.