Link to home
Start Free TrialLog in
Avatar of nospanov
nospanov

asked on

502 Bad Gateway error on client when i host my WCF service to the IIS 7.

Hello
When i call wcf service locally, it works fine.
when i call my wcf service hositing it on IIS i get error 502. It happens exactly after 90 secs. So i thing it is some timeout issue...

I tried to change following setting on IIS on mywebsite and default website settings.
In website - connectiontimeout - set to 600 instead of 120
in application pool Ping maximum respond time - 600 instead of 90, ShoutDownTimeLimit = 600 instead of 90 and start uptime limit, instead of 90


I consume WCF through win 8 app client, setting are following:
           
            client.Endpoint.Binding.ReceiveTimeout = new TimeSpan(0, 3, 0);
            client.Endpoint.Binding.CloseTimeout = new TimeSpan(0, 3, 0);
            client.Endpoint.Binding.OpenTimeout = new TimeSpan(0, 3, 0);
            client.Endpoint.Binding.SendTimeout = new TimeSpan(1, 0, 0);
As i said, it works locally

WCF works through http

What else it can be?
ASKER CERTIFIED SOLUTION
Avatar of kblau
kblau

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial