I’ve got a WCF service that I’m hosting in IIS 7, which I connect to from a .NET page. The service and page work fine when I test it locally from Visual Studio, but when I put it on my staging server I get a TimeoutException.
Any suggestions on how I can debug this to work out what’s going wrong?
Sometimes it helps to isolate the problem by removing one half of the system.
For example, if you believe that you problem is the WCF service, try hitting the service from a browser. If that works, write a tiny console application and try to invoke some methods on the service. If THAT works too, then consider looking into your web app/config (as covered by tvanfosson in another reply here).