Program avr by Arduino IDE and AVRISP MKII

Hi everybody
I want to program avr(atmega328) with Arduino uno.
I do burn bootloader arduino uno but when program avr,arduino has error.
What Do I have to work?
I'm sorry for my weak english text
Thankyou

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Thank you for your answer
I can ask how can I program avr with Arduino IDE?

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

I don't know , my method is correct or not?
my errors :

Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 930 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\\.\COM20": The system cannot find the file specified.


Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

You're doing a regular upload via serial. But if you really want to upload via your AVRISP mkII that won't work. Instead you need to do Sketch > Upload Using Programmer. You can also hold the Shift key while you click the upload button to do an Upload Using Programmer.

Keep in mind that when you do an Upload Using Programmer it erases the bootloader. So if you ever want to go back to uploading via serial you'll need to do another Tools > Burn Bootloader first.