简体   繁体   中英

503 Error when calling WCF web service but only by my Windows Service

I have a WCF service that I wrote and is working fine in a production environment. However I am getting an error is a new test environment.

The service is being accessed by a Windows service running on the same server. When it attempts to send a request it receives a 503 response code with a message saying the service is unavailable.

However I have confirmed that the service is reachable by browsing to the auto-generated service information page and the WDSL. I can also send requests to it using SOAPUI.

All three clients (the app, the browser, and SOAPUI) are using the same base URL and all running locally on the same server.

I don't understand how the service can be unavailable to one client but be available to the others.

Both the web service and client (windows service) are written in c# in Visual Studio 2017 targeting.Net Framework 4.0 and running on a Win server 2016.

--Jacob

Any 5XX ranges are generated on the server side, which may mean that you have a configuration problem when deploying the server.
If it works fine on your development machine, then pay close attention to setting anything like the IP address or other communication port that will be used.
You can check the documentation on the 503 Service Unavailable error: what it is and how to fix it.

https://www.ionos.com/digitalguide/hosting/technical-matters/http-503-how-to-fix-website-errors/
https://airbrake.io/blog/http-errors/503-service-unavailable
Service Unavailable 503 + The HTTP service located at http://localhost/ProductsService/Service.svc is too busy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM