Viv, is this an actual error or do you only get it when you run in debug mode? If you run your console app's EXE instead of running in VS, do you still have a connection problem?
~~Bonnie
>Hi,
>
>After some thrashing around I have a simple WCF service hosted on IIS6.
>
>However when I attempt to access it from a console app in debug mode it insists on trying to step into the remote code - ie there's a few seconds delay then a message box with the following:
>"Unable to automatically debug 'http://192.168.0.166:22223/. Connecting to the server machine failed. Logon failure: unknown user name or bad password."
>
>I don't understand *why* it is attempting to step into this code or, more importantly, how to stop it doing so.
>Can't see anything either in the local app.config or the web sites web.config that might influence this.
>Any suggestions?