Hello,
The error (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) appear mostly while trying to connect to a SQL Server named instance and not when you use default instance. The client stack could not receive SSRP response UDP packet from SQL Browser.
Some fast steps to troubleshoot this error:
Recheck the server name for any error and fix it
Check the instance name for any error
Check if SQL Server browser is running
Control if this instance exist on server
Ping the server and check if DNS can be resolved correctly
Also you can follow the following article here to troubleshoot the error step by step.