A log shipping job on the source server fails with these errors:

** Error: Could not retrieve backup settings for primary ID '24f08e17-6f53-4dac-9320-bcbcd7a526d7'.(Microsoft.SqlServer.Management.LogShipping) ***

*** Error: Failed to connect to server WIN-XXLDC996YOY.(Microsoft.SqlServer.ConnectionInfo) ***
*** Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(.Net SqlClient Data Provider) ***
---- END OF TRANSACTION LOG BACKUP   -----



where "WIN-XXLDC996YOY" is not the name of your server. This parameter is part
of the command line found in (right click the job under SQL Server Agent >
Jobs) > Steps > 1st step > Edit. Replace that string with the correct server
name, and the job should run.