I have a web service which works fine and is deployed to the server. The web service accesses database on another server and returns data to the client. I can run the client code (c# winforms) to connect to the web service on the server and everything is peachy. I change the client to point to localhost (I have setup virtual dir etc) because I want to debug it. I can debug but on calling the stored procedure I get "SQL Server is not available or access is denied" I can connect to that SQL server via Visual Studio no problem. The client code is the same, the login info to the DB server is the same (the connection string is read from web.config)!! I tried SQL profiler but the call actually doesn't make it that far. All I can think of is that the issue is to do with the my local machine, probably IIS but I am not sure what. Any ideas?