Getting error while trying to connect UART

I am trying to connect the UART to connect to any named pipe or USB or serial adapter. I am trying this for my speech synthesizer. I am getting an error every time I tried to connect. The error “Cannot set the host port mode of the serial port 0 because the device path is empty or null.” I am getting the same error and cannot set the host pipe mode of serial port 0 as the path pipe seems to be empty. I have tried with every windows host but the error remains same.
