htc M8_ul flashing failed but set in boot mode

0P6BIMG_M8_UL_M60_STOCK_UI_MR_Google_WWE_5.07.1700 .6_MRA58K.H6_Radio_1.23.213311491.A13G_20.52A.4198 .01_F_release_454830_signed_2_4

i used this file via sd card flashing failed in system file writing

Reading information…
Using Fastboot mode…
Reading common information
(bootloader) version: 0.5
(bootloader) version-bootloader:
(bootloader) version-baseband: 1.23.213311491.A13G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 5.07.1700.6
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: SH4BJWM03078
(bootloader) imei: 357336065644384
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B10000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 11459804
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
Execution time is 46(ms)
all: Done!
Reading secure flag information
… (bootloader) secure_flag: 0
Execution time is 31(ms)
Reading CID information
… (bootloader) cid: 11111111
Execution time is 125(ms)
Reading MEID information
… (bootloader) meid: 00000000000000
Execution time is 78(ms)
Read information completed.

and also tried with software

Starting flash process…
Execution time is 2703(ms)
sending ‘zip’… (50587 KB) OKAY
Error: Not allowed. Probably phone is not in RUU mode. Please switch to RUU mode and try again
FAILED (remote: not allowed)
Flash process completed.