Error while uploading bootloader

When I try to upload boot loader on Nano using Uno, I face this problem. The error messages are as follows:

avrdude: ser_open(): can't set com-state for "\.\COM9"
Error while uploading bootloader.

I have tried to set the processor to the Nano's, set the board to nano, programmer to arduino ISP and checked the com port, and checked the connections.

Could somebody suggest a solution.
Thanks

Port should be set to the Uno's port when using the Uno as programmer.