The error says that the Port number is not valid. Funnily though the error says Port number 49862/ExternalDB is not valid as if it is considering the /ExternalDB as part of the port number.
Are you using this connection URL as whole somewhere? could it be that the place where you use this URL is taking the DB name separately from the connection string?