I recently ran into an issue when using aspnet_regsql in our environment. Locally, I didn't have any problem using the following command line.
"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regsql.exe" -S server\instance -E -ssadd -sstype p
However, when I move to our server environments, I get the following failure message.
An error has occurred. Details of the exception: 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: TCP Provider, error: 0 - The wait operation timed out.)
Unable to connect to SQL Server database.