Agent 404 Error: Service Startup Change
Problem
Agents will not register. The Agent log shows a 404 error: Unable to register with server: System.AggregateException: One or more errors occurred. ---> System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https:///TMS/Agent/AgentRegistration4.svc that could accept the message.
This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
Navigating to https:///TMS/Agent/AgentRegistration4.svc in a browser, should show an XML response, but presents an Error 404 page instead.
Cause
SQL Server (Or SQL Server Express) and SQL Server CEIP services are set to Automatic (Delayed) startup instead of Automatic.
Solution
-
Open Services (services.msc).
-
Change both SQL Server and SQL Server CEIP to be startup type Automatic.
-
Ensure both services are running.
-
Open Internet Information Services (IIS) and recycle the TMS application pool.
The Default Web Site application may also need to be restarted on the right-hand side. If the 404 error persists, open an elevated PowerShell window and run the iisreset
command. The error should clear and Agents should be able to register.